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([
|
||||
knex('notifications').insert(notifications),
|
||||
knex('stashes_scenes').insert(stashes),
|
||||
bulkInsert('notifications', notifications, false),
|
||||
bulkInsert('stashes_scenes', stashes, false),
|
||||
]);
|
||||
|
||||
return releases.rows;
|
||||
|
|
Loading…
Reference in New Issue