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

Commit

Permalink
Merge pull request #22 from dsi-icl/devel
Browse files Browse the repository at this point in the history
remove useless fat
  • Loading branch information
aoehmichen authored Nov 24, 2017
2 parents 51e882a + 4bbcd46 commit dd3c2e9
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 dd3c2e9

Please sign in to comment.