Skip to content

Commit

Permalink
Fix thread cleaner forgetting to clean some thread and messages
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Jun 1, 2024
1 parent 182ab66 commit c4b6b1e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ export const deleteUsingPagination = async (
) => Promise<void>,
transactionManager?: EntityManager,
) => {
let offset = 0;
let hasMoreData = true;

while (hasMoreData) {
const idsToDelete = await getterPaginated(
batchSize,
offset,
0,
workspaceId,
transactionManager,
);
Expand All @@ -32,7 +31,5 @@ export const deleteUsingPagination = async (
} else {
hasMoreData = false;
}

offset += batchSize;
}
};

0 comments on commit c4b6b1e

Please sign in to comment.