fix: close documented platform polish gaps

This commit is contained in:
hectorzhao
2026-07-11 18:20:38 +08:00
parent 6236547871
commit 2ecbb920a6
25 changed files with 193 additions and 110 deletions
+10 -3
View File
@@ -153,7 +153,7 @@ export class OperationsService {
billingAggregate,
transactionAggregate,
connectionGroups,
pendingAuditCount,
pendingAudits,
tenantAccounts,
recentTasks,
recentRecharges,
@@ -257,7 +257,8 @@ export class OperationsService {
billing: billingAggregate,
transactions: transactionAggregate,
gatewayConnections: connectionGroups,
pendingAuditCount,
pendingAuditCount: pendingAudits.total,
pendingAudits,
downstreamDeliverySummary: {
pending: downstreamPendingCount,
failed: downstreamFailedCount,
@@ -736,7 +737,13 @@ export class OperationsService {
this.prisma.smsSignature.count({ where: { tenantId, auditStatus: 'pending' } }),
this.prisma.enterpriseCertification.count({ where: { tenantId, status: 'pending' } }),
this.prisma.smsSendTask.count({ where: { tenantId, status: 'pending_review' } }),
]).then((counts) => counts.reduce((sum, value) => sum + value, 0));
]).then(([templates, signatures, enterpriseCertifications, smsAudits]) => ({
templates,
signatures,
enterpriseCertifications,
smsAudits,
total: templates + signatures + enterpriseCertifications + smsAudits,
}));
}
private gatewayDownstreamRecoveryStatusDelegate() {