Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions lib/realtime/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,9 @@ defmodule Realtime.Api do
|> repo.preload(:extensions)
end

def list_extensions(type \\ "postgres_cdc_rls") do
from(e in Extensions,
where: e.type == ^type,
select: e
)
|> Replica.replica().all()
defp list_extensions(type \\ "postgres_cdc_rls") do
from(e in Extensions, where: e.type == ^type, select: e)
|> Repo.all()
end

def rename_settings_field(from, to) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.46.3",
version: "2.46.4",
elixir: "~> 1.17.3",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down
4 changes: 0 additions & 4 deletions test/realtime/api_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ defmodule Realtime.ApiTest do
end
end

test "list_extensions/1 ", %{tenants: tenants} do
assert length(Api.list_extensions()) == length(tenants)
end

describe "preload_counters/1" do
test "preloads counters for a given tenant ", %{tenants: [tenant | _]} do
tenant = Repo.reload!(tenant)
Expand Down
Loading