|
|
|
@ -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));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|