From 10699d69f6f4b67bd02d0707292915d3658eae37 Mon Sep 17 00:00:00 2001 From: Wisp X <1591788658@qq.com> Date: Fri, 20 May 2022 09:09:40 +0800 Subject: [PATCH] fix a bug --- app/Http/Controllers/Admin/ImageController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/ImageController.php b/app/Http/Controllers/Admin/ImageController.php index f8be99d2..e65f14ab 100644 --- a/app/Http/Controllers/Admin/ImageController.php +++ b/app/Http/Controllers/Admin/ImageController.php @@ -39,8 +39,8 @@ class ImageController extends Controller 'is:guest' => $builder->whereNull('user_id'), 'is:adminer' => $builder->whereHas('user', fn (Builder $builder) => $builder->where('is_adminer', 1)), 'order:earliest' => $builder->orderBy('created_at'), - 'order:utmost' => $builder->orderBy('size'), - 'order:least' => $builder->orderByDesc('size'), + 'order:utmost' => $builder->orderByDesc('size'), + 'order:least' => $builder->orderBy('size'), default => 0, };