Skip to content

Commit aabf9df

Browse files
h0lybytefilipecabacoedgurgelFudster
authored
🔄 Sync with upstream changes (#4)
* fix: runtime setup error (supabase#1520) * fix: use primary instead of replica on rename_settings_field (supabase#1521) --------- Co-authored-by: Filipe Cabaço <[email protected]> Co-authored-by: Eduardo Gurgel <[email protected]> Co-authored-by: Bradley Haljendi <[email protected]>
1 parent fe4dbdc commit aabf9df

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

lib/realtime/api.ex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,9 @@ defmodule Realtime.Api do
186186
|> repo.preload(:extensions)
187187
end
188188

189-
def list_extensions(type \\ "postgres_cdc_rls") do
190-
from(e in Extensions,
191-
where: e.type == ^type,
192-
select: e
193-
)
194-
|> Replica.replica().all()
189+
defp list_extensions(type \\ "postgres_cdc_rls") do
190+
from(e in Extensions, where: e.type == ^type, select: e)
191+
|> Repo.all()
195192
end
196193

197194
def rename_settings_field(from, to) do

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
44
def project do
55
[
66
app: :realtime,
7-
version: "2.46.3",
7+
version: "2.46.4",
88
elixir: "~> 1.17.3",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
start_permanent: Mix.env() == :prod,

test/realtime/api_test.exs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,6 @@ defmodule Realtime.ApiTest do
236236
end
237237
end
238238

239-
test "list_extensions/1 ", %{tenants: tenants} do
240-
assert length(Api.list_extensions()) == length(tenants)
241-
end
242-
243239
describe "preload_counters/1" do
244240
test "preloads counters for a given tenant ", %{tenants: [tenant | _]} do
245241
tenant = Repo.reload!(tenant)

0 commit comments

Comments
 (0)