Skip to content

Commit 68742e9

Browse files
authored
fix: rpc call returns PostgrestFilterBuilder (#50)
fixes supabase/supabase-swift#110
1 parent e9dae74 commit 68742e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/PostgREST/PostgrestClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class PostgrestClient {
5656
fn: String,
5757
params: U,
5858
count: CountOption? = nil
59-
) -> PostgrestTransformBuilder {
59+
) -> PostgrestFilterBuilder {
6060
PostgrestRpcBuilder(
6161
client: self,
6262
request: Request(
@@ -76,7 +76,7 @@ public class PostgrestClient {
7676
public func rpc(
7777
fn: String,
7878
count: CountOption? = nil
79-
) -> PostgrestTransformBuilder {
79+
) -> PostgrestFilterBuilder {
8080
rpc(fn: fn, params: NoParams(), count: count)
8181
}
8282
}

Sources/PostgREST/PostgrestRpcBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public final class PostgrestRpcBuilder: PostgrestBuilder {
77
params: U,
88
head: Bool = false,
99
count: CountOption? = nil
10-
) -> PostgrestTransformBuilder {
10+
) -> PostgrestFilterBuilder {
1111
// TODO: Support `HEAD` method
1212
// https://github.com/supabase/postgrest-js/blob/master/src/lib/PostgrestRpcBuilder.ts#L38
1313
assert(head == false, "HEAD is not currently supported yet.")
@@ -27,6 +27,6 @@ public final class PostgrestRpcBuilder: PostgrestBuilder {
2727
}
2828
}
2929

30-
return PostgrestTransformBuilder(self)
30+
return PostgrestFilterBuilder(self)
3131
}
3232
}

0 commit comments

Comments
 (0)