mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-26 11:01:17 +03:00
e8a33e4d4d
fix Error: Cannot read properties of undefined (reading 'sendTelemetry')
14 lines
452 B
TypeScript
14 lines
452 B
TypeScript
import * as Server from '../index'
|
|
|
|
export const getRunningExpressApp = function () {
|
|
const runningExpressInstance = Server.getInstance()
|
|
if (
|
|
typeof runningExpressInstance === 'undefined' ||
|
|
typeof runningExpressInstance.nodesPool === 'undefined' ||
|
|
typeof runningExpressInstance.telemetry === 'undefined'
|
|
) {
|
|
throw new Error(`Error: getRunningExpressApp failed!`)
|
|
}
|
|
return runningExpressInstance
|
|
}
|