chore: streamline query builder orderBy calls with asc and desc arguments

This commit is contained in:
HDVinnie
2022-01-08 03:34:17 -05:00
parent 77ec35bea5
commit d7cb337f5f
26 changed files with 56 additions and 56 deletions

View File

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