Got it working!

This commit is contained in:
Daniel Ledda
2020-11-03 00:18:05 +01:00
parent edf4197377
commit 3cfcaa3922

View File

@@ -52,7 +52,6 @@ func saveSnapshot(w http.ResponseWriter, r *http.Request) error {
snapshotSub.Humidity,
snapshotSub.Co2,
snapshotSub.Timestamp)
fmt.Println(query)
_, err = ClimateDb.Query(query)
if err != nil {
return fmt.Errorf("couldn't submit snapshot into the database: %w", err)