Sorts sending queue according to their creation date (oldest to newest)

This commit is contained in:
Vlad
2017-06-01 13:21:03 -04:00
parent dd4bebb570
commit 92e4cc6a24

View File

@ -178,6 +178,7 @@ class SendingQueue {
static function getRunningQueues() { static function getRunningQueues() {
return SendingQueueModel::orderByAsc('priority') return SendingQueueModel::orderByAsc('priority')
->orderByAsc('created_at')
->whereNull('deleted_at') ->whereNull('deleted_at')
->whereNull('status') ->whereNull('status')
->whereNull('type') ->whereNull('type')