fix: recover CMPP slots after gateway restart

This commit is contained in:
hectorzhao
2026-07-16 18:02:25 +08:00
parent faa716b8d0
commit 23a1f6fa15
3 changed files with 8 additions and 0 deletions
@@ -541,6 +541,9 @@ describe('SmsConfigService', () => {
remoteIp: '127.0.0.1',
}),
});
expect(prisma.cmppDownstreamConnection.deleteMany).toHaveBeenCalledWith({
where: { status: 'connected', lastHeartbeatAt: { lt: new Date('2026-07-11T10:58:30.000Z') } },
});
expect(prisma.operationLog.create).toHaveBeenCalledWith({
data: expect.objectContaining({
action: 'cmpp_downstream_connection.connected',