mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-26 09:01:17 +03:00
Bugfix/metrics provider undefined error (#3489)
fix metrics provider undefined error
This commit is contained in:
@@ -197,7 +197,7 @@ export const upsertVector = async (req: Request, isInternal: boolean = false) =>
|
||||
flowGraph: getTelemetryFlowObj(nodes, edges),
|
||||
stopNodeId
|
||||
})
|
||||
appServer.metricsProvider.incrementCounter(FLOWISE_METRIC_COUNTERS.VECTORSTORE_UPSERT, { status: FLOWISE_COUNTER_STATUS.SUCCESS })
|
||||
appServer.metricsProvider?.incrementCounter(FLOWISE_METRIC_COUNTERS.VECTORSTORE_UPSERT, { status: FLOWISE_COUNTER_STATUS.SUCCESS })
|
||||
|
||||
return upsertedResult['result'] ?? { result: 'Successfully Upserted' }
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user