mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-05 19:18:46 -06:00
chore: streamline query builder orderBy calls with asc and desc arguments
This commit is contained in:
@@ -149,7 +149,7 @@ class ChatController extends Controller
|
||||
$botDirty = 0;
|
||||
$bots = \cache()->get('bots');
|
||||
if (! $bots || ! \is_array($bots) || \count($bots) < 1) {
|
||||
$bots = Bot::where('active', '=', 1)->orderBy('position', 'asc')->get();
|
||||
$bots = Bot::where('active', '=', 1)->orderBy('position')->get();
|
||||
$botDirty = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user