Skip to content

Commit

Permalink
Fix console output when cleaning up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fsvreddit committed Oct 15, 2024
1 parent e3354e9 commit 915dda9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion devvit.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name: social-links-bot
version: 0.0.20
version: 0.0.21
2 changes: 1 addition & 1 deletion src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function runCleanup (_: unknown, context: JobContext) {
await comment.delete();
}

console.log(`Deleted ${commentsToDelete} comment(s) via cleanup job`);
console.log(`Deleted ${commentsToDelete.length} comment(s) via cleanup job`);

await context.redis.zRem(CLEANUP_KEY, commentsToDelete);
}
Expand Down

0 comments on commit 915dda9

Please sign in to comment.