Skip to content

Commit

Permalink
Merge pull request #1646 from Logflare/staging
Browse files Browse the repository at this point in the history
Release 1.3.24
  • Loading branch information
filipecabaco authored Jul 27, 2023
2 parents b6ed692 + a3f1198 commit 1540fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.23
1.3.24
4 changes: 2 additions & 2 deletions lib/logflare/backends/adaptor/postgres_adaptor/pg_repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ defmodule Logflare.Backends.Adaptor.PostgresAdaptor.PgRepo do
Inserts a LogEvent into the given source backend table
"""
@spec insert_log_event(SourceBackend.t(), LogEvent.t()) :: {:ok, PgLogEvent.t()}
def insert_log_event(source_backend, %LogEvent{} = log_event) do
def insert_log_event(%{config: config} = source_backend, %LogEvent{} = log_event) do
repo = get_repo_module(source_backend)
table = PostgresAdaptor.table_name(source_backend)

Expand All @@ -192,7 +192,7 @@ defmodule Logflare.Backends.Adaptor.PostgresAdaptor.PgRepo do

changeset =
%PgLogEvent{}
|> Ecto.put_meta(source: table)
|> Ecto.put_meta(source: table, prefix: config["schema"])
|> PgLogEvent.changeset(params)

repo.insert(changeset)
Expand Down

0 comments on commit 1540fbc

Please sign in to comment.