upd: apply suggestions

This commit is contained in:
Marie 2024-09-14 14:11:12 +02:00
parent 8b4c6e00b4
commit 5cd11cacdc
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555
9 changed files with 37 additions and 29 deletions

View file

@ -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' });