Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
remove useless fat
Browse files Browse the repository at this point in the history
  • Loading branch information
aoehmichen committed Nov 24, 2017
1 parent eeb9246 commit 4bbcd46
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/jobExecutorAbstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ JobExecutorAbstract.prototype.pushModel = function() {
let _this = this;

return new Promise(function(resolve, reject) {
// while(_this._model.statusLock){
// setTimeout(function() { _this.fetchModel(); }, 500); // we wait for 500 ms before refreshing again
// }
let replacementData = _this._model;
delete replacementData._id; // Cleanup MongoDB managed _id field, if any
_this._jobCollection.findOneAndReplace({ _id : _this._jobID }, replacementData, { upsert: true, returnOriginal: false })
Expand Down

0 comments on commit 4bbcd46

Please sign in to comment.