fix
This commit is contained in:
+7
-6
@@ -96,12 +96,13 @@ export const execQuery = async (args: DBArg, prisma: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (inserts.length > 0) {
|
if (inserts.length > 0) {
|
||||||
transactions.push(
|
for (const row of inserts) {
|
||||||
prisma[table].createMany({
|
transactions.push(
|
||||||
data: inserts,
|
prisma[table].create({
|
||||||
skipDuplicates: true,
|
data: row,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (updates.length > 0) {
|
if (updates.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user