diff --git a/src/app/services/user.js b/src/app/services/user.js index fc98214c..6b0e6e8f 100644 --- a/src/app/services/user.js +++ b/src/app/services/user.js @@ -307,6 +307,13 @@ module.exports = (Model, App) => { await user.destroy(); + await Model.folder.update({ deleted: true, removed: true }, { + where: { + user_id: user.id, + parent_id: null, + } + }); + logger.info('User %s confirmed deactivation', userEmail); } catch (err) { if (user) {