Skip to content

Commit

Permalink
Add logs to job removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mathcoll committed Oct 24, 2021
1 parent e40e73a commit 741eafd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t6jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ t6jobs.remove = function(query, limit) {
return new Promise((resolve, reject) => {
if ( jobs.chain().find(typeof query!=="undefined"?query:{}).limit(typeof limit!=="undefined"?limit:null).remove() ) {
db_jobs.saveDatabase();
t6events.addAudit("t6App", "t6jobs.remove", query.job_id, "", {"status": 200});
return resolve(query.job_id);
} else {
return reject("Can't find job to be removed.");
Expand Down

0 comments on commit 741eafd

Please sign in to comment.