fix(authorization): exclude revoked records when checking existing authorization

The findByAccountSequenceAndRoleType query now excludes REVOKED status,
allowing users to be re-authorized after their authorization was revoked.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-04 00:59:37 -08:00
parent 190bf8257b
commit ec528a7226
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ export class AuthorizationRoleRepositoryImpl implements IAuthorizationRoleReposi
where: {
accountSequence: accountSequence,
roleType: roleType,
status: { not: AuthorizationStatus.REVOKED }, // 排除已撤销的记录
...this.notDeleted,
},
})