Almost there

This commit is contained in:
Daniel Ledda
2020-11-14 15:26:45 +01:00
parent 99b7c21c76
commit d2955e53b4
4 changed files with 5 additions and 6 deletions

View File

@@ -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 }