From 5ac64d410eab390fbb231e84358deb6618a0c701 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 4 May 2024 05:18:00 +0200 Subject: [PATCH] Fixed alert stash deduper. --- src/alerts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alerts.js b/src/alerts.js index 2037f306..2161f379 100755 --- a/src/alerts.js +++ b/src/alerts.js @@ -205,10 +205,10 @@ async function notify(scenes) { })); const uniqueStashes = Object.values(Object.fromEntries(triggers.flatMap((trigger) => trigger.alert.stashes.map((stashId) => ({ - sceneId: trigger.sceneId, stashId, + sceneId: trigger.sceneId, userId: trigger.alert.userId, - }))).map((stash) => [`${stash.stash_id}:${stash.scene_id}`, stash]))); + }))).map((stash) => [`${stash.stashId}:${stash.sceneId}`, stash]))); const stashEntries = uniqueStashes.map((stash) => ({ scene_id: stash.sceneId,