Permalink
Browse files

Merge pull request #165 from jeffutter/patch-1

Support delay over http post
  • Loading branch information...
drudge committed Mar 19, 2013
2 parents c87a825 + 193647e commit f03eaa22f419b8c0c3c0ff7a3cb1a80404a31ee1
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http/routes/json.js
View
@@ -1,4 +1,3 @@
-
/*!
* kue - http - routes - json
* Copyright (c) 2011 LearnBoost <tj@learnboost.com>
@@ -135,6 +134,7 @@ exports.createJob = function(req, res) {
var options = body.options || {};
if (options.attempts) job.attempts(parseInt(options.attempts));
if (options.priority) job.priority(options.priority);
+ if (options.delay) job.delay(options.delay);
job.save(function(err) {
if (err) return res.send({ error: err.message }, 500);

0 comments on commit f03eaa2

Please sign in to comment.