diff --git a/Database.go b/Database.go index 6f2deec..33d732e 100644 --- a/Database.go +++ b/Database.go @@ -27,7 +27,7 @@ func CloseDb() { } func writeSnapshotToDb(snapshotSub *SnapshotSubmission) (int64, error) { - queryStr := "INSERT INTO `snapshots` (`temp`, `humidity`, `co2`, `time`, `id`) VALUES (?, ?, ?, '?', NULL);" + queryStr := "INSERT INTO `snapshots` (`temp`, `humidity`, `co2`, `time`, `id`) VALUES (?, ?, ?, ?, NULL);" query, err := ClimateDb.Prepare(queryStr) if err != nil { return -1, fmt.Errorf("couldn't prepare snapshot query: %w", err)