fix a bug

This commit is contained in:
Wisp X 2022-05-20 09:09:40 +08:00
parent 58da33d3c9
commit 10699d69f6

View File

@ -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,
};