From c30574324bfd355f891616c253fcaa1db38f8ad2 Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 19 Jun 2023 00:44:59 -0400 Subject: [PATCH] actually ban and remove archived users --- app/workers/reeeper/job/archive-user-local.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/workers/reeeper/job/archive-user-local.js b/app/workers/reeeper/job/archive-user-local.js index 54074a0..85b7c85 100644 --- a/app/workers/reeeper/job/archive-user-local.js +++ b/app/workers/reeeper/job/archive-user-local.js @@ -87,7 +87,7 @@ class ArchiveUserLocalJob extends SiteWorkerProcess { /* * Disable the User account (which destroys their session and cookie(s)) */ - // await this.disableUser(job); + await this.disableUser(job); /* * Archive the User's content to the workPath on the local file system. @@ -110,7 +110,7 @@ class ArchiveUserLocalJob extends SiteWorkerProcess { username: job.data.user.username, }, }); - // await userService.ban(job.data.user); + await userService.ban(job.data.user); this.log.info('removing user', { user: { @@ -118,7 +118,7 @@ class ArchiveUserLocalJob extends SiteWorkerProcess { username: job.data.user.username, }, }); - // await User.deleteOne({ _id: job.data.userId }); + await User.deleteOne({ _id: job.data.userId }); } catch (error) { this.log.error('failed to archive user', { userId: job.data.userId, error }); throw error;