lowercase username for UsedUsernamesRepository - fixes #1161

This commit is contained in:
dakkar 2025-07-22 20:39:44 +01:00
parent ed68230811
commit 97e7011622

View file

@ -61,7 +61,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
'Your Account has been declined!');
}
await this.usedUsernamesRepository.delete({ username: user.username });
await this.usedUsernamesRepository.delete({ username: user.username.toLowerCase() });
await this.deleteAccountService.deleteAccount(user);