forked from DebaucheryLibrarian/traxxx
Using bulk insert utility for alert notifications to prevent duplicate errors (fixed).
This commit is contained in:
parent
7a44c7aaaa
commit
3f473589ad
|
@ -125,8 +125,8 @@ async function notify(scenes) {
|
||||||
})));
|
})));
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
knex('notifications').insert(notifications),
|
bulkInsert('notifications', notifications, false),
|
||||||
knex('stashes_scenes').insert(stashes),
|
bulkInsert('stashes_scenes', stashes, false),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return releases.rows;
|
return releases.rows;
|
||||||
|
|
Loading…
Reference in New Issue