(id)
| 1437 | } |
| 1438 | |
| 1439 | async takeSnapshot(id) { |
| 1440 | const chart = await this.findById(id); |
| 1441 | |
| 1442 | if (!chart?.snapshotToken) { |
| 1443 | return Promise.reject("Chart does not have a snapshot token"); |
| 1444 | } |
| 1445 | |
| 1446 | return snapChart(chart.snapshotToken); |
| 1447 | } |
| 1448 | |
| 1449 | /** |
| 1450 | * Create a chart with all its chart dataset configs in one go |
no test coverage detected