(record)
| 4 | const chartDatasetConfigAttributeExcludes = ["id", "chart_id", "createdAt", "updatedAt"]; |
| 5 | |
| 6 | const toPlainObject = (record) => { |
| 7 | if (!record) return record; |
| 8 | return record.toJSON ? record.toJSON() : { ...record }; |
| 9 | }; |
| 10 | |
| 11 | const sanitizeTemplateChart = (chart, tid) => { |
| 12 | const safeChart = toPlainObject(chart); |
no outgoing calls
no test coverage detected