We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d5c01d + 0aaf036 commit 4682eddCopy full SHA for 4682edd
lib/http/routes/json.js
@@ -153,7 +153,8 @@ exports.createJob = function( req, res ) {
153
if( options.searchKeys ) job.searchKeys(options.searchKeys);
154
if( options.backoff ) job.backoff(options.backoff);
155
if( options.removeOnComplete ) job.removeOnComplete(options.removeOnComplete);
156
-
+ if( options.ttl ) job.ttl(options.ttl);
157
+
158
job.save(function( err ) {
159
if( err ) {
160
return next({ error: err.message }, null, 500);
0 commit comments