(CustomTemplate)
| 67 | } |
| 68 | |
| 69 | const sanitizeCustomTemplate = (CustomTemplate) => { |
| 70 | try { |
| 71 | return CustomTemplate.map((customTemplate) => { |
| 72 | return { ...customTemplate, usecases: JSON.stringify(customTemplate.usecases), workspaceId: undefined } |
| 73 | }) |
| 74 | } catch (error) { |
| 75 | throw new Error(`exportImport.sanitizeCustomTemplate ${getErrorMessage(error)}`) |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | const sanitizeDocumentStore = (DocumentStore) => { |
| 80 | try { |
no test coverage detected