From bc5eeafd04ca67559eb30557b5ac89c8b80c19e8 Mon Sep 17 00:00:00 2001 From: Rizky Date: Sun, 7 Jul 2024 07:53:59 +0700 Subject: [PATCH] fix --- pkgs/utils/query.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/utils/query.ts b/pkgs/utils/query.ts index 2391081..ecdc532 100644 --- a/pkgs/utils/query.ts +++ b/pkgs/utils/query.ts @@ -102,6 +102,8 @@ export const execQuery = async (args: DBArg, prisma: any) => { } if (inserts.length > 0) { + console.log("inserts", inserts); + for (const row of inserts) { for (const [k, v] of Object.entries(row) as any) { const rel = rels[k]; @@ -130,6 +132,8 @@ export const execQuery = async (args: DBArg, prisma: any) => { } if (updates.length > 0) { + console.log("updates", updates); + for (const row of updates) { const where = {} as any; for (const pk of pks) { @@ -162,6 +166,7 @@ export const execQuery = async (args: DBArg, prisma: any) => { } if (deletes.length > 0) { + console.log("deletes", deletes); for (const item of deletes) { const where = {} as any; for (const pk of pks) {