Skip to content

Commit

Permalink
StoreResult: Don't store bogus date for unset fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Apr 11, 2017
1 parent f36ac0f commit cc22ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions participants/StoreResult.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ storeImageResult = (data) ->
imageData =
id: data.payload.id
started_at: new Date data.started_at
failed_at: new Date data.failed_at
completed_at: new Date data.completed_at
failed_at: new Date data.failed_at if data.failed_at
completed_at: new Date data.completed_at if data.completed_at
result: data.result
error: data.error
return jobs.imageProcessed data.job, imageData
Expand Down

0 comments on commit cc22ba5

Please sign in to comment.