1
0
mirror of https://github.com/immich-app/immich.git synced 2025-02-17 19:49:40 +02: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;