diff --git a/app/workers/reeeper/job/archive-user-local.js b/app/workers/reeeper/job/archive-user-local.js index e75b636..59e40fa 100644 --- a/app/workers/reeeper/job/archive-user-local.js +++ b/app/workers/reeeper/job/archive-user-local.js @@ -229,7 +229,7 @@ class ArchiveUserLocalJob extends SiteWorkerProcess { .find({ author: job.data.userId }) .cursor() .eachAsync(async (comment) => { - const commentFilename = path.join(job.data.imagePath, `comment-${comment._id}.json`); + const commentFilename = path.join(job.data.commentPath, `comment-${comment._id}.json`); await fs.promises.writeFile(commentFilename, JSON.stringify(comment, null, 2)); }); }