Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 00a52c5f83 1.237.11 2024-05-04 05:18:03 +02:00
DebaucheryLibrarian 5ac64d410e Fixed alert stash deduper. 2024-05-04 05:18:00 +02:00
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.237.10",
"version": "1.237.11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.237.10",
"version": "1.237.11",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.458.0",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.237.10",
"version": "1.237.11",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {

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,