fix upsert
This commit is contained in:
parent
df5cd23f7c
commit
1ea1a21ed2
|
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue