Skip to content

Commit

Permalink
add close to api
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Nov 13, 2017
1 parent 43e00cc commit b78483f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function createApi(createQueue, options = {}) {
url: req.body.url,
meta: req.body.meta || {}
}).then(function (response) {
queue.close()

if (error.isError(response)) {
res.status(422).json(response)
return
Expand Down

0 comments on commit b78483f

Please sign in to comment.