فهرست منبع

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

Alex 2 سال پیش
والد
کامیت
1df068bac9
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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();
   }