Skip to content

Commit

Permalink
Get status of backup upload correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bautisflow committed Oct 25, 2023
1 parent 22fa949 commit e105edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thinger/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ namespace thinger::monitor {
data["backup"]["operations"]["upload"] = backup->upload();

// Clean if upload succeded
if ( data["backup"]["operations"]["upload"].get<bool>() ) {
if ( data["backup"]["operations"]["upload"]["status"].get<bool>() ) {
LOG_INFO("[_BACKUP] Cleaning backup temporary files");
data["backup"]["operations"]["clean"] = backup->clean();
} else {
Expand Down

0 comments on commit e105edd

Please sign in to comment.