mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
fix: Error Cannot read properties of undefined (reading 'sendTelemetry') (#3734)
fix Error: Cannot read properties of undefined (reading 'sendTelemetry')
This commit is contained in:
@@ -2,7 +2,11 @@ import * as Server from '../index'
|
|||||||
|
|
||||||
export const getRunningExpressApp = function () {
|
export const getRunningExpressApp = function () {
|
||||||
const runningExpressInstance = Server.getInstance()
|
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!`)
|
throw new Error(`Error: getRunningExpressApp failed!`)
|
||||||
}
|
}
|
||||||
return runningExpressInstance
|
return runningExpressInstance
|
||||||
|
|||||||
Reference in New Issue
Block a user