From 4d617d44f619c2f79713ec3e235dcc888337d856 Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Thu, 20 Mar 2014 11:31:26 -0700 Subject: [PATCH] Fixed queue --- server/commons/queue.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/commons/queue.coffee b/server/commons/queue.coffee index a168f87c6..64b71ae64 100644 --- a/server/commons/queue.coffee +++ b/server/commons/queue.coffee @@ -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