seerr: fix discord ID setting

APi change, discordId is now discordIds (an array).
This commit is contained in:
Harvey Tindall
2026-06-10 08:55:06 +01:00
parent 76878976ee
commit de8e7c69be
3 changed files with 47 additions and 27 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package main
import (
"slices"
"strconv"
"strings"
"time"
@@ -45,7 +46,7 @@ func (app *appContext) SynchronizeJellyseerrUser(jfID string) {
}
if discordEnabled {
dcUser, ok := app.storage.GetDiscordKey(jfID)
if ok && dcUser.ID != "" && notif.DiscordID != dcUser.ID {
if ok && dcUser.ID != "" && !slices.Contains(notif.DiscordIDs, dcUser.ID) {
contactMethods[jellyseerr.FieldDiscord] = dcUser.ID
contactMethods[jellyseerr.FieldDiscordEnabled] = dcUser.Contact
}