Skip to content

Commit

Permalink
When fetching posts to delete, get them in batches of 100
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAdamDavis committed Nov 19, 2024
1 parent d9f2047 commit 6f4e069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/delete-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const getFullTaskList = (options) => {
ctx.posts = await discover({
api: ctx.api,
type: 'posts',
filter: discoveryFilter.join('+')
filter: discoveryFilter.join('+'),
limit: 100
});

task.output = `Found ${ctx.posts.length} posts`;
Expand Down

0 comments on commit 6f4e069

Please sign in to comment.