diff --git a/lib/logflare/backends/adaptor/postgres_adaptor/pg_repo.ex b/lib/logflare/backends/adaptor/postgres_adaptor/pg_repo.ex index 056eabd4a..a92b04a6f 100644 --- a/lib/logflare/backends/adaptor/postgres_adaptor/pg_repo.ex +++ b/lib/logflare/backends/adaptor/postgres_adaptor/pg_repo.ex @@ -46,7 +46,7 @@ defmodule Logflare.Backends.Adaptor.PostgresAdaptor.PgRepo do @spec get_repo_module(SourceBackend.t()) :: Ecto.Repo.t() def get_repo_module(%SourceBackend{config: config, source: %Source{}}) do data = inspect(config) - sha256 = :crypto.hash(:sha256, data) |> Base.encode16() |> String.downcase() + sha256 = :crypto.hash(:sha256, data) |> Base.encode16(case: :lower) Module.concat([Logflare.Repo.Postgres, "Adaptor#{sha256}"]) end