Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianBuzzo committed Oct 31, 2024
1 parent 2f0f63a commit ebca4d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const createClient = (
name: "Yates client",
query: {
$allModels: {
async $allOperations(params) {
$allOperations(params) {
const { model, args, query, operation } = params;
if (!model) {
// If the model is not defined, we can't apply RLS
Expand Down Expand Up @@ -304,7 +304,7 @@ export const createClient = (
// See https://github.com/prisma/prisma/issues/18276
// @ts-ignore
return prisma.$transaction(
async (tx) => {
(tx) => {
return Promise.all([
// Switch to the user role, We can't use a prepared statement here, due to limitations in PG not allowing prepared statements to be used in SET ROLE
tx.$queryRawUnsafe(`SET ROLE ${pgRole}`),
Expand Down

0 comments on commit ebca4d0

Please sign in to comment.