diff --git a/src/thinger/client.h b/src/thinger/client.h index 3c3842a..f0b9d2b 100644 --- a/src/thinger/client.h +++ b/src/thinger/client.h @@ -173,7 +173,7 @@ namespace thinger::monitor { data["backup"]["operations"]["upload"] = backup->upload(); // Clean if upload succeded - if ( data["backup"]["operations"]["upload"].get() ) { + if ( data["backup"]["operations"]["upload"]["status"].get() ) { LOG_INFO("[_BACKUP] Cleaning backup temporary files"); data["backup"]["operations"]["clean"] = backup->clean(); } else {