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:
parent
a916df56ee
commit
d14f23497c
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue