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

fix person delete pagination
This commit is contained in:
Mert 2024-01-28 17:02:01 -05:00 committed by GitHub
parent f52994e8ca
commit 28806d03e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {