Fixed queue

This commit is contained in:
Michael Schmatz 2014-03-20 11:31:26 -07:00
parent dbbf9ce8b3
commit 4d617d44f6

View file

@ -201,7 +201,7 @@ class MongoQueue extends events.EventEmitter
receiptHandle: @_generateRandomReceiptHandle()
scheduledVisibilityTime: @_constructDefaultVisibilityTimeoutDate()
@Message.findOneAndUpdate conditions, update, options, (err, data) =>
@Message.findOneAndUpdate conditions, update, (err, data) =>
return @emit 'error',err,data if err?
originalData = data