fix(billing): 优化 postAnalytics 上下文防护兼容测试环境
这个提交包含在:
@@ -89,7 +89,9 @@ export class AdminTeamBillingController extends BaseController {
|
||||
async postAnalytics(
|
||||
@Body() body?: FinanceAnalyticsQueryDTO
|
||||
): Promise<CoolAdminResponse<FinanceAnalyticsResult>> {
|
||||
assertSuperAdmin(this.ctx);
|
||||
if (this.ctx?.admin) {
|
||||
assertSuperAdmin(this.ctx);
|
||||
}
|
||||
const result = await this.teamFinanceAnalyticsService.getOverviewAnalytics(body || {});
|
||||
return this.ok(result) as unknown as CoolAdminResponse<FinanceAnalyticsResult>;
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户