fix upsert

This commit is contained in:
Rizky 2024-05-10 19:27:16 +07:00
parent df5cd23f7c
commit 1ea1a21ed2
1 changed files with 2 additions and 2 deletions

View File

@ -70,9 +70,9 @@ export const execQuery = async (args: DBArg, prisma: any) => {
});
if (found) {
updates.push(row);
updates.push({...row, ...where});
} else {
inserts.push(row);
inserts.push({...row, ...where});
}
}