diff --git a/modules/account/back/methods/user-account/sync.js b/modules/account/back/methods/user-account/sync.js index 1e0ba7f70..1bfbcc3da 100644 --- a/modules/account/back/methods/user-account/sync.js +++ b/modules/account/back/methods/user-account/sync.js @@ -189,7 +189,7 @@ module.exports = Self => { else await $.user.upsert(appUser); } else - await $.user.destroyAll({userName}); + await $.user.destroyAll({username: userName}); // SIP