Skip to content

Commit

Permalink
sql-delete: fix bad return value
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsura authored and BareosBot committed Aug 1, 2023
1 parent fff92bd commit 069f747
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/cats/sql_delete.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,7 @@ bool BareosDb::DeleteMediaRecord(JobControlRecord* jcr, MediaDbRecord* mr)
}

Mmsg(cmd, "DELETE FROM Media WHERE MediaId=%d", mr->MediaId);
SqlQuery(cmd);

return true;
return DELETE_DB(jcr, cmd) != -1;
}

void BareosDb::PurgeFiles(const char* jobids)
Expand Down

0 comments on commit 069f747

Please sign in to comment.