Skip to content

Commit

Permalink
removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Mar 13, 2017
1 parent 6666336 commit 302a29b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ var Job = function(queue, data, opts){
this.attemptsMade = 0;
};

//
// TODO: events emission to be based on pubsub to make them global.
//
function addJob(queue, job){
var opts = job.opts;
var jobData = job.toData();
Expand Down Expand Up @@ -168,7 +165,7 @@ Job.prototype.delayIfNeeded = function(){

Job.prototype.moveToCompleted = function(returnValue){
this.returnvalue = returnValue || 0;
return scripts.moveToCompleted(this || 0, this.opts.removeOnComplete);
return scripts.moveToCompleted(this, this.opts.removeOnComplete);
};

Job.prototype.move = function(src, target, returnValue){
Expand All @@ -178,7 +175,7 @@ Job.prototype.move = function(src, target, returnValue){
target = void 0;
}
}
return scripts.move(this || 0, src, target);
return scripts.move(this, src, target);
}

Job.prototype.discard = function(){
Expand Down

0 comments on commit 302a29b

Please sign in to comment.