Skip to content

Commit

Permalink
Merge pull request #1654 from Logflare/staging
Browse files Browse the repository at this point in the history
Release 1.3.26
  • Loading branch information
filipecabaco authored Jul 29, 2023
2 parents fbf134b + 1df4a9d commit c937e0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.25
1.3.26
4 changes: 3 additions & 1 deletion lib/logflare/backends/adaptor/postgres_adaptor/pg_repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ defmodule Logflare.Backends.Adaptor.PostgresAdaptor.PgRepo do
body: log_event.body
}

schema = Map.get(source_backend.config, "schema") || Map.get(source_backend.config, :schema)

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

repo.insert(changeset)
Expand Down

0 comments on commit c937e0a

Please sign in to comment.