Using bulk insert utility for alert notifications to prevent duplicate errors (fixed).

This commit is contained in:
DebaucheryLibrarian 2021-06-04 03:22:40 +02:00
parent 7a44c7aaaa
commit 3f473589ad
1 changed files with 2 additions and 2 deletions

View File

@ -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;