chore(server): add limit to people return (#3069)

This commit is contained in:
Alex 2023-07-02 15:28:53 -05:00 committed by GitHub
parent d9e084706f
commit 1df068bac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
} }