Skip to content

Commit

Permalink
Merge pull request #4 from TransPlace-Devs/fix-common-data-race
Browse files Browse the repository at this point in the history
  • Loading branch information
elise32 authored Dec 30, 2022
2 parents 145bfb4 + 5d6c8f6 commit cf37a68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/verification/managers/verifyUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ async function verifyUser(ticket, verifier, resolve, reject) {
return;
}

if (applicant.roles.cache.has(config.roles.verified)) {
await reject('User has already been verified');
return;
}

// verify user
await verify(applicant);

Expand Down

0 comments on commit cf37a68

Please sign in to comment.