From 3ef8db58b9c4eeb70d8efcc9590a3f1a8fec5ce3 Mon Sep 17 00:00:00 2001 From: Rizky Date: Fri, 10 May 2024 19:54:01 +0700 Subject: [PATCH] fix query upsert --- pkgs/utils/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/utils/query.ts b/pkgs/utils/query.ts index 147c046..84433fc 100644 --- a/pkgs/utils/query.ts +++ b/pkgs/utils/query.ts @@ -102,7 +102,7 @@ export const execQuery = async (args: DBArg, prisma: any) => { } transactions.push( - prisma[table].update({ data: item, where }) + prisma[table].update({ data: item, where, select }) ); } }