Almost there
This commit is contained in:
@@ -52,7 +52,7 @@ func sendData(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
dateSince = newDateSince
|
||||
}
|
||||
records, err := getSnapshotRecordsFromDb(dateSince)
|
||||
records, err := getSnapshotRecordsFromDb(dateSince.String())
|
||||
if internalErrorOnErr(fmt.Errorf("couldn't get snapshots from db: %w", err), w, r) { return }
|
||||
json, err := createJsonFromSnapshotRecords(records)
|
||||
if internalErrorOnErr(fmt.Errorf("couldn't create json from snapshots: %w", err), w, r) { return }
|
||||
|
||||
Reference in New Issue
Block a user