From b44eca417be0129fc82490a6e42e819db8f50c39 Mon Sep 17 00:00:00 2001 From: rob Date: Sun, 18 Jun 2023 20:37:24 -0400 Subject: [PATCH] corrected a file path --- app/workers/reeeper/job/archive-user-local.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/reeeper/job/archive-user-local.js b/app/workers/reeeper/job/archive-user-local.js index a2a4148..54074a0 100644 --- a/app/workers/reeeper/job/archive-user-local.js +++ b/app/workers/reeeper/job/archive-user-local.js @@ -224,7 +224,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)); }); }