fix: harden real backend workflows and channel connections
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user