diff --git a/server/src/services/notification.service.ts b/server/src/services/notification.service.ts index 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;