upd: apply suggestions
This commit is contained in:
parent
8b4c6e00b4
commit
5cd11cacdc
9 changed files with 37 additions and 29 deletions
|
|
@ -131,7 +131,9 @@ export class StripeHookServerService {
|
|||
|
||||
this.logger.succ(`${user.username} has failed ID Verification via Session ${verificationSession.id}`);
|
||||
|
||||
await this.usersRepository.update(user.id, { idCheckRequired: false });
|
||||
|
||||
// If general instance then unset idCheckRequired as to prevent locking the user out forever admins/mods can see the mod note in case of the failure
|
||||
if (!this.config.stripeAgeCheck.required) await this.usersRepository.update(user.id, { idCheckRequired: false });
|
||||
|
||||
await this.userProfilesRepository.update(user.id, { moderationNote: 'ADM/IDFAIL: Possibly underage' });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue