fix
This commit is contained in:
parent
594b37371b
commit
165c8d10aa
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue