mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(server): always show people with name, ignore count (#4414)
This commit is contained in:
		@@ -72,7 +72,7 @@ export class PersonRepository implements IPersonRepository {
 | 
				
			|||||||
      .addOrderBy("NULLIF(person.name, '') IS NULL", 'ASC')
 | 
					      .addOrderBy("NULLIF(person.name, '') IS NULL", 'ASC')
 | 
				
			||||||
      .addOrderBy('COUNT(face.assetId)', 'DESC')
 | 
					      .addOrderBy('COUNT(face.assetId)', 'DESC')
 | 
				
			||||||
      .addOrderBy("NULLIF(person.name, '')", 'ASC', 'NULLS LAST')
 | 
					      .addOrderBy("NULLIF(person.name, '')", 'ASC', 'NULLS LAST')
 | 
				
			||||||
      .having('COUNT(face.assetId) >= :faces', { faces: options?.minimumFaceCount || 1 })
 | 
					      .having("person.name != '' OR COUNT(face.assetId) >= :faces", { faces: options?.minimumFaceCount || 1 })
 | 
				
			||||||
      .groupBy('person.id')
 | 
					      .groupBy('person.id')
 | 
				
			||||||
      .limit(500);
 | 
					      .limit(500);
 | 
				
			||||||
    if (!options?.withHidden) {
 | 
					    if (!options?.withHidden) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user