Skip to content

Commit

Permalink
Finished feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ross authored and Alex Ross committed Oct 4, 2019
1 parent 03a4fc6 commit 14d77d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const run = () => {
})

app.use('/add', (req, res) => {
example.add({ title: req.query.title }, { delay: 100000 })
example.add({ title: req.query.title })
res.json({ ok: true })
})

Expand Down
2 changes: 1 addition & 1 deletion ui/components/Queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const fieldComponents = {
return job.attempts
},
delay: ({ job }) => {
return job.delay
return job.timestamp + job.delay - Date.now()
},
failedReason: ({ job }) => {
return (
Expand Down

0 comments on commit 14d77d0

Please sign in to comment.