Skip to content

Commit

Permalink
Update PostgrestRpc.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert authored Sep 4, 2024
1 parent 26d5167 commit c163ef7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ suspend inline fun <reified T : Any> Postgrest.rpc(
count = requestBuilder.count,
urlParams = urlParams,
body = encodedParameters,
headers = requestBuilder.headers
headers = requestBuilder.headers.build()
)
return RestRequestExecutor.execute(postgrest = this, path = "rpc/$function", request = rpcRequest)
}
Expand All @@ -80,7 +80,7 @@ suspend inline fun Postgrest.rpc(
method = method.httpMethod,
count = requestBuilder.count,
urlParams = requestBuilder.params.mapToFirstValue(),
headers = requestBuilder.headers
headers = requestBuilder.headers.build()
)
return RestRequestExecutor.execute(postgrest = this, path = "rpc/$function", request = rpcRequest)
}

0 comments on commit c163ef7

Please sign in to comment.