MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / _removeCredentialId

Function _removeCredentialId

packages/server/src/utils/index.ts:2100–2113  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

2098}
2099
2100export const _removeCredentialId = (obj: any): any => {
2101 if (!obj || typeof obj !== 'object') return obj
2102
2103 if (Array.isArray(obj)) {
2104 return obj.map((item) => _removeCredentialId(item))
2105 }
2106
2107 const newObj: Record<string, any> = {}
2108 for (const [key, value] of Object.entries(obj)) {
2109 if (key === 'FLOWISE_CREDENTIAL_ID') continue
2110 newObj[key] = _removeCredentialId(value)
2111 }
2112 return newObj
2113}
2114
2115/**
2116 * Validates that history items follow the expected schema

Callers 3

getPublicExecutionByIdFunction · 0.90
executeAgentFlowFunction · 0.70
findAvailableConfigsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected