diff --git a/devvit.yaml b/devvit.yaml index e69caa6..c0ecc79 100644 --- a/devvit.yaml +++ b/devvit.yaml @@ -1,2 +1,2 @@ name: social-links-bot -version: 0.0.20 +version: 0.0.21 diff --git a/src/cleanup.ts b/src/cleanup.ts index 23cde9a..5288ef7 100644 --- a/src/cleanup.ts +++ b/src/cleanup.ts @@ -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); }