(ChatFlow)
| 20 | } |
| 21 | |
| 22 | const sanitizeChatflow = (ChatFlow) => { |
| 23 | try { |
| 24 | return ChatFlow.map((chatFlow) => { |
| 25 | const sanitizeFlowData = generateExportFlowData(JSON.parse(chatFlow.flowData)) |
| 26 | return { |
| 27 | id: chatFlow.id, |
| 28 | name: chatFlow.name, |
| 29 | flowData: stringify(sanitizeFlowData), |
| 30 | type: chatFlow.type |
| 31 | } |
| 32 | }) |
| 33 | } catch (error) { |
| 34 | throw new Error(`exportImport.sanitizeChatflow ${getErrorMessage(error)}`) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | const sanitizeVariable = (Variable) => { |
| 39 | try { |
no test coverage detected