High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(server): album update disable no effect (#10090)
Alexd14f23497ccf
diff --git a/server/src/services/notification.service.ts b/server/src/services/notification.service.tsindex dab9dd91b3..3aec2e04f3 100644--- a/server/src/services/notification.service.ts+++ b/server/src/services/notification.service.ts@@ -182,7 +182,12 @@ export class NotificationService {const { server } = await this.configCore.getConfig();for (const recipient of recipients) {- const { emailNotifications } = getPreferences(recipient);+ const user = await this.userRepository.get(recipient.id, { withDeleted: false });+ if (!user) {+ continue;+ }++ const { emailNotifications } = getPreferences(user);if (!emailNotifications.enabled || !emailNotifications.albumUpdate) {continue;