From f5a92da1687d0ab5363a2fc23f7ff0b0bcd7e87b Mon Sep 17 00:00:00 2001 From: minottic Date: Tue, 20 Aug 2024 15:53:28 +0200 Subject: [PATCH] Lint login callback --- services/backend/services/v3/config/login-callbacks.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,