fix: type-check compile fix for batch-save route
This commit is contained in:
parent
731a2c4b4a
commit
9759a8bcda
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export async function POST(req: NextRequest) {
|
||||||
|
|
||||||
const prisma = getPrisma();
|
const prisma = getPrisma();
|
||||||
|
|
||||||
const result = await prisma.$transaction(async (tx) => {
|
const result = await prisma.$transaction(async (tx: any) => {
|
||||||
// Elevate privileges to admin role to bypass RLS for n8n batch operations
|
// Elevate privileges to admin role to bypass RLS for n8n batch operations
|
||||||
await tx.$executeRawUnsafe(`SET LOCAL app.current_user_role = 'admin';`);
|
await tx.$executeRawUnsafe(`SET LOCAL app.current_user_role = 'admin';`);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue