From 08e56acc2438ad88503df9504a2d82b6cbfe37e7 Mon Sep 17 00:00:00 2001 From: edmondlang Date: Mon, 12 Aug 2024 14:17:07 +0800 Subject: [PATCH] update pending_orders, order by updated_at desc --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 32038ed2..112dee31 100644 --- a/routes/web.php +++ b/routes/web.php @@ -400,7 +400,7 @@ Route::get('/pending_orders', function(){ ->whereDoesntHave('transactions', function ($query) { return $query->where('type', TransactionType::REFUND)->whereIn('status', [ApprovalStatus::PENDING_SUBMISSION, ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED]); }) - // ->orderBy('updated_at', 'desc') + ->orderBy('updated_at', 'desc') ->get(); echo '';