debug: add logging to queryAuthorizations
This commit is contained in:
parent
ef6b2ceb22
commit
16d895d460
|
|
@ -3465,10 +3465,13 @@ export class AuthorizationApplicationService {
|
|||
const limit = params.limit ?? 20
|
||||
const includeRevoked = params.includeRevoked ?? false
|
||||
|
||||
this.logger.log(`[queryAuthorizations] 查询参数: roleType=${params.roleType}, includeRevoked=${includeRevoked}, page=${page}, limit=${limit}`)
|
||||
|
||||
// 获取所有授权(管理员应该能看到所有已授权的用户,包括考核期的)
|
||||
let allAuthorizations: AuthorizationRole[] = await this.authorizationRepository.findByStatus(
|
||||
AuthorizationStatus.AUTHORIZED,
|
||||
)
|
||||
this.logger.log(`[queryAuthorizations] 查询到 AUTHORIZED 授权数量: ${allAuthorizations.length}`)
|
||||
|
||||
// 按 roleType 过滤
|
||||
if (params.roleType) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue