Skip to content

High performance self-hosted photo and video management solution.

fix(server): fix person pagination when deleting (#6707)

Mert28806d03e32b
diff --git a/server/src/domain/person/person.service.ts b/server/src/domain/person/person.service.ts
index 7ab863962d..c4bbd8d1c7 100644
--- a/server/src/domain/person/person.service.ts
+++ b/server/src/domain/person/person.service.ts
@@ -258,7 +258,7 @@ export class PersonService {
private async deleteAllPeople() {
const personPagination = usePagination(JOBS_ASSET_PAGINATION_SIZE, (pagination) =>
- this.repository.getAll(pagination),
+ this.repository.getAll({ ...pagination, skip: 0 }),
);
for await (const people of personPagination) {