- Sorts queues to process according to their priority in ascending manner
This commit is contained in:
@ -161,7 +161,7 @@ class SendingQueue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function getRunningQueues() {
|
static function getRunningQueues() {
|
||||||
return SendingQueueModel::orderByDesc('priority')
|
return SendingQueueModel::orderByAsc('priority')
|
||||||
->whereNull('deleted_at')
|
->whereNull('deleted_at')
|
||||||
->whereNull('status')
|
->whereNull('status')
|
||||||
->findMany();
|
->findMany();
|
||||||
|
Reference in New Issue
Block a user