mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	fix(server): album update disable no effect (#10090)
This commit is contained in:
		
							parent
							
								
									a916df56ee
								
							
						
					
					
						commit
						d14f23497c
					
				@ -182,7 +182,12 @@ export class NotificationService {
 | 
				
			|||||||
    const { server } = await this.configCore.getConfig();
 | 
					    const { server } = await this.configCore.getConfig();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (const recipient of recipients) {
 | 
					    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) {
 | 
					      if (!emailNotifications.enabled || !emailNotifications.albumUpdate) {
 | 
				
			||||||
        continue;
 | 
					        continue;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user