fix(server): always show people with name, ignore count (#4414)
This commit is contained in:
parent
dadcf49eca
commit
ed386dd12a
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ export class PersonRepository implements IPersonRepository {
|
|||
.addOrderBy("NULLIF(person.name, '') IS NULL", 'ASC')
|
||||
.addOrderBy('COUNT(face.assetId)', 'DESC')
|
||||
.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')
|
||||
.limit(500);
|
||||
if (!options?.withHidden) {
|
||||
|
|
Loading…
Reference in a new issue