Changed endpoints and db queries, chart now shows suggested mins and maxes
This commit is contained in:
@@ -43,7 +43,7 @@ func createSnapshotSubFromJsonBodyStream(jsonBodyStream io.ReadCloser) (*Snapsho
|
||||
func createJsonFromSnapshotRecords(records []*SnapshotRecord) ([]byte, error) {
|
||||
jsonResult, err := json.Marshal(SnapshotPayload{records})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("couldn't marshal json: %w", err)
|
||||
}
|
||||
return jsonResult, nil
|
||||
}
|
||||
Reference in New Issue
Block a user