Skip to content

Commit

Permalink
Lint login callback
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Aug 20, 2024
1 parent 5efb4da commit f5a92da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions services/backend/services/v3/config/login-callbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f5a92da

Please sign in to comment.