fix: harden real backend workflows and channel connections

This commit is contained in:
hectorzhao
2026-07-06 17:54:53 +08:00
parent 8cca361441
commit b5132d7f4e
47 changed files with 2530 additions and 314 deletions
@@ -462,7 +462,7 @@ function mapApplication(application: EnterpriseApplication): SmsApp {
}
function mapConnection(connection: CmppConnectionState): CmppConnection {
const isOpen = ['online', 'connected', 'open'].includes(connection.status) && connection.currentConnections > 0;
const isOpen = connection.status === 'connected' && connection.currentConnections > 0;
return {
id: connection.connectionId,
state: isOpen ? 'open' : connection.status === 'reconnecting' ? 'reconnecting' : 'closed',