Skip to content

Commit

Permalink
jobs: Avoid Node.js 7 specific API
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Apr 20, 2017
1 parent 89b555d commit a9681af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jobs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ bluebird = require 'bluebird'
knex = require 'knex'

db = require '../db'
common = require './common'

exports.create = (job) ->
return bluebird.resolve()
Expand All @@ -25,7 +26,7 @@ exports.isCompleted = (job) ->
imageCompleted = (image) ->
return image.failed_at or image.completed_at

all = Object.values job.images
all = common.objectValues job.images
completed = all.filter imageCompleted
notCompleted = all.filter (i) -> not imageCompleted i
remaining = all.length-completed.length
Expand Down

0 comments on commit a9681af

Please sign in to comment.