(row: IClickhouseGroup)
| 38 | }; |
| 39 | |
| 40 | function transformGroup(row: IClickhouseGroup): IServiceGroup { |
| 41 | return { |
| 42 | id: row.id, |
| 43 | projectId: row.project_id, |
| 44 | type: row.type, |
| 45 | name: row.name, |
| 46 | properties: row.properties, |
| 47 | createdAt: new Date(row.created_at), |
| 48 | updatedAt: new Date(Number(row.version)), |
| 49 | }; |
| 50 | } |
| 51 | |
| 52 | async function writeGroupToCh( |
| 53 | group: { |