1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-16 00:36:47 +01:00

fix(server): album update disable no effect (#10090)

This commit is contained in:
Alex 2024-06-11 03:51:58 -05:00 committed by GitHub
parent a916df56ee
commit d14f23497c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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