update pending_orders, order by updated_at desc

This commit is contained in:
edmondlang
2024-08-12 14:17:07 +08:00
parent a6174c61bf
commit 08e56acc24
+1 -1
View File
@@ -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 '<table>';