We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe0203 commit e8a33e4Copy full SHA for e8a33e4
packages/server/src/utils/getRunningExpressApp.ts
@@ -2,7 +2,11 @@ import * as Server from '../index'
2
3
export const getRunningExpressApp = function () {
4
const runningExpressInstance = Server.getInstance()
5
- if (typeof runningExpressInstance === 'undefined' || typeof runningExpressInstance.nodesPool === 'undefined') {
+ if (
6
+ typeof runningExpressInstance === 'undefined' ||
7
+ typeof runningExpressInstance.nodesPool === 'undefined' ||
8
+ typeof runningExpressInstance.telemetry === 'undefined'
9
+ ) {
10
throw new Error(`Error: getRunningExpressApp failed!`)
11
}
12
return runningExpressInstance
0 commit comments