Browse Source

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

Alex 2 năm trước cách đây
mục cha
commit
1df068bac9
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      server/src/infra/repositories/person.repository.ts

+ 1 - 0
server/src/infra/repositories/person.repository.ts

@@ -28,6 +28,7 @@ export class PersonRepository implements IPersonRepository {
       .orderBy('COUNT(face.assetId)', 'DESC')
       .having('COUNT(face.assetId) >= :faces', { faces: options?.minimumFaceCount || 1 })
       .groupBy('person.id')
+      .limit(500)
       .getMany();
   }