Skip to content

Commit

Permalink
fix: no longer save method deactivation if no transport
Browse files Browse the repository at this point in the history
this could cause a method to be permanently deactivated if an admin temporarily deactivated a transport
  • Loading branch information
floriannari committed Jul 8, 2024
1 parent ab62d11 commit cb489ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions controllers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ async function deactivateRandomCodeIfNoTransport(user, data, suffixe) {

if (!hasTransport(randomCode, data)) {
user["random_code" + suffixe].active = false;
await save_user(user);
logger.info('No transport is set. Auto deactivate random_code' + suffixe + ' for ' + user.uid);
}
}
}
Expand Down

0 comments on commit cb489ab

Please sign in to comment.