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,