fix: close documented platform polish gaps
This commit is contained in:
@@ -248,6 +248,13 @@ describe('OperationsService', () => {
|
||||
taskCount: 3,
|
||||
uplinkCount: 1,
|
||||
pendingAuditCount: 5,
|
||||
pendingAudits: {
|
||||
enterpriseCertifications: 1,
|
||||
smsAudits: 2,
|
||||
signatures: 1,
|
||||
templates: 1,
|
||||
total: 5,
|
||||
},
|
||||
gatewayConnections: [{ status: 'connected', _count: { _all: 1 }, _sum: { currentConnections: 2, desiredConnections: 2 } }],
|
||||
downstreamDeliverySummary: expect.objectContaining({
|
||||
pending: 3,
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user