fix upsert
This commit is contained in:
+2
-2
@@ -70,9 +70,9 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (found) {
|
if (found) {
|
||||||
updates.push(row);
|
updates.push({...row, ...where});
|
||||||
} else {
|
} else {
|
||||||
inserts.push(row);
|
inserts.push({...row, ...where});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user