Skip to content

Commit e8a33e4

Browse files
authored
fix: Error Cannot read properties of undefined (reading 'sendTelemetry') (#3734)
fix Error: Cannot read properties of undefined (reading 'sendTelemetry')
1 parent bbe0203 commit e8a33e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/server/src/utils/getRunningExpressApp.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import * as Server from '../index'
22

33
export const getRunningExpressApp = function () {
44
const runningExpressInstance = Server.getInstance()
5-
if (typeof runningExpressInstance === 'undefined' || typeof runningExpressInstance.nodesPool === 'undefined') {
5+
if (
6+
typeof runningExpressInstance === 'undefined' ||
7+
typeof runningExpressInstance.nodesPool === 'undefined' ||
8+
typeof runningExpressInstance.telemetry === 'undefined'
9+
) {
610
throw new Error(`Error: getRunningExpressApp failed!`)
711
}
812
return runningExpressInstance

0 commit comments

Comments
 (0)