bug when finished

This commit is contained in:
Muhammad Izza Alfiansyah 2024-07-09 16:30:16 +07:00
parent 4ce311a5a9
commit c217c0eaa7
1 changed files with 3 additions and 2 deletions

View File

@ -671,11 +671,12 @@ void insertHistory(bool berhasil = true) {
String json = JSON.stringify(req);
JSONVar reqSet;
reqSet["buzzer_on"] = false;
reqSet["buzzer_on"] = true;
String jsonReqSet = JSON.stringify(reqSet);
db.from("pengaturan").eq("id", "1").doUpdate(jsonReqSet);
db.insert("histori_fermentasi", json, false);
db.from("pengaturan").eq("id", "1").doUpdate(jsonSett);
callUser(berhasil);
pengujian = true;