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:
parent
190bf8257b
commit
ec528a7226
|
|
@ -121,6 +121,7 @@ export class AuthorizationRoleRepositoryImpl implements IAuthorizationRoleReposi
|
|||
where: {
|
||||
accountSequence: accountSequence,
|
||||
roleType: roleType,
|
||||
status: { not: AuthorizationStatus.REVOKED }, // 排除已撤销的记录
|
||||
...this.notDeleted,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue