mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-01-08 11:57:52 +08:00
fix a bug
This commit is contained in:
parent
58da33d3c9
commit
10699d69f6
@ -39,8 +39,8 @@ class ImageController extends Controller
|
|||||||
'is:guest' => $builder->whereNull('user_id'),
|
'is:guest' => $builder->whereNull('user_id'),
|
||||||
'is:adminer' => $builder->whereHas('user', fn (Builder $builder) => $builder->where('is_adminer', 1)),
|
'is:adminer' => $builder->whereHas('user', fn (Builder $builder) => $builder->where('is_adminer', 1)),
|
||||||
'order:earliest' => $builder->orderBy('created_at'),
|
'order:earliest' => $builder->orderBy('created_at'),
|
||||||
'order:utmost' => $builder->orderBy('size'),
|
'order:utmost' => $builder->orderByDesc('size'),
|
||||||
'order:least' => $builder->orderByDesc('size'),
|
'order:least' => $builder->orderBy('size'),
|
||||||
default => 0,
|
default => 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user