소스 검색

chore(server): Enhancement for query to get assets for each recognized person (#2475)

Alex 2 년 전
부모
커밋
790e43dd6e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      server/libs/infra/src/repositories/person.repository.ts

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

@@ -52,6 +52,7 @@ export class PersonRepository implements IPersonRepository {
           personId,
         },
         isVisible: true,
+        isArchived: false,
       },
       relations: {
         faces: {
@@ -63,7 +64,7 @@ export class PersonRepository implements IPersonRepository {
         createdAt: 'ASC',
       },
       // TODO: remove after either (1) pagination or (2) time bucket is implemented for this query
-      take: 3000,
+      take: 1000,
     });
   }