mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
chore(server): add limit to people return (#3069)
This commit is contained in:
parent
d9e084706f
commit
1df068bac9
@ -28,6 +28,7 @@ export class PersonRepository implements IPersonRepository {
|
|||||||
.orderBy('COUNT(face.assetId)', 'DESC')
|
.orderBy('COUNT(face.assetId)', 'DESC')
|
||||||
.having('COUNT(face.assetId) >= :faces', { faces: options?.minimumFaceCount || 1 })
|
.having('COUNT(face.assetId) >= :faces', { faces: options?.minimumFaceCount || 1 })
|
||||||
.groupBy('person.id')
|
.groupBy('person.id')
|
||||||
|
.limit(500)
|
||||||
.getMany();
|
.getMany();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user