diff --git a/services/backend/services/v3/config/login-callbacks.js b/services/backend/services/v3/config/login-callbacks.js index d9d8ebca..ef2a31e2 100644 --- a/services/backend/services/v3/config/login-callbacks.js +++ b/services/backend/services/v3/config/login-callbacks.js @@ -3,11 +3,11 @@ exports.accessGroupsToProfile = function (req, done) { return async function (err, user, identity, token) { - await user.identities.destroyAll({and: [ - {provider: identity.provider}, - {id: {neq: identity.id}}, - {userId: user.id} - ]}); + await user.identities.destroyAll({ and: [ + { provider: identity.provider }, + { id: { neq: identity.id } }, + { userId: user.id } + ] }); identity.updateAttributes({ "profile": { accessGroups: identity.profile._json.accessGroups,