fix(authorization): show parent community without requiring benefitActive

Changed findActiveCommunityByAccountSequences to not require benefitActive=true.
This allows communities that haven't passed assessment to still be shown as
parent communities in the UI, while reward distribution logic remains unchanged.

🤖 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 2025-12-11 18:39:22 -08:00
parent 9378bf7570
commit fc55afb7b9
1 changed files with 2 additions and 1 deletions

View File

@ -183,12 +183,13 @@ export class AuthorizationRoleRepositoryImpl implements IAuthorizationRoleReposi
return []
}
// 只要求已授权状态,不要求权益已激活
// 这样未通过考核的社区也能被识别为上级社区
const records = await this.prisma.authorizationRole.findMany({
where: {
accountSequence: { in: accountSequences },
roleType: RoleType.COMMUNITY,
status: AuthorizationStatus.AUTHORIZED,
benefitActive: true,
},
orderBy: { accountSequence: 'asc' },
})