From 9e8a31f2dfa4192102144b3428bd94830fef9a95 Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Thu, 20 Mar 2014 08:44:41 -0700 Subject: [PATCH] Removed sort by scheduled visibility time --- server/commons/queue.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/commons/queue.coffee b/server/commons/queue.coffee index 10710e340..a168f87c6 100644 --- a/server/commons/queue.coffee +++ b/server/commons/queue.coffee @@ -193,8 +193,8 @@ class MongoQueue extends events.EventEmitter scheduledVisibilityTime: $lte: new Date() - options = - sort: 'scheduledVisibilityTime' + #options = + # sort: 'scheduledVisibilityTime' update = $set: @@ -286,4 +286,4 @@ class MongoMessage changeMessageVisibilityTimeout: (secondsFromFunctionCall, callback) -> @parentQueue.changeMessageVisibilityTimeout secondsFromFunctionCall,@getReceiptHandle(), callback - getReceiptHandle: -> @originalMessage.receiptHandle \ No newline at end of file + getReceiptHandle: -> @originalMessage.receiptHandle