diff --git a/packages/server/src/utils/getRunningExpressApp.ts b/packages/server/src/utils/getRunningExpressApp.ts index e02f988f1..6f876f3f8 100644 --- a/packages/server/src/utils/getRunningExpressApp.ts +++ b/packages/server/src/utils/getRunningExpressApp.ts @@ -2,7 +2,11 @@ import * as Server from '../index' export const getRunningExpressApp = function () { const runningExpressInstance = Server.getInstance() - if (typeof runningExpressInstance === 'undefined' || typeof runningExpressInstance.nodesPool === 'undefined') { + if ( + typeof runningExpressInstance === 'undefined' || + typeof runningExpressInstance.nodesPool === 'undefined' || + typeof runningExpressInstance.telemetry === 'undefined' + ) { throw new Error(`Error: getRunningExpressApp failed!`) } return runningExpressInstance