Got it working!
This commit is contained in:
@@ -52,7 +52,6 @@ func saveSnapshot(w http.ResponseWriter, r *http.Request) error {
|
|||||||
snapshotSub.Humidity,
|
snapshotSub.Humidity,
|
||||||
snapshotSub.Co2,
|
snapshotSub.Co2,
|
||||||
snapshotSub.Timestamp)
|
snapshotSub.Timestamp)
|
||||||
fmt.Println(query)
|
|
||||||
_, err = ClimateDb.Query(query)
|
_, err = ClimateDb.Query(query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("couldn't submit snapshot into the database: %w", err)
|
return fmt.Errorf("couldn't submit snapshot into the database: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user