Fixed alert stash deduper.

This commit is contained in:
DebaucheryLibrarian 2024-05-04 05:18:00 +02:00
parent f9e8e0263a
commit 5ac64d410e
1 changed files with 2 additions and 2 deletions

View File

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