Skip to content

Commit

Permalink
fix: fixed domain.save issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Apr 23, 2024
1 parent f2dee72 commit ea01e8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,9 +997,7 @@ Users.pre('save', async function (next) {
'members.user': {
$in: adminIds
}
})
.lean()
.exec();
});

if (!domain) {
const error = Boom.badRequest(
Expand Down

0 comments on commit ea01e8b

Please sign in to comment.