TypeError:
App\Models\Settings::orderByProcess(): Argument #1 ($value) must be of type int, null given, called in /**REDACTED**/app/Models/Server.php on line 36
at /**REDACTED**/app/Models/Settings.php:48
at App\Models\Settings::orderByProcess()
(/**REDACTED**/app/Models/Server.php:36)
at App\Models\Server::App\Models\{closure}()
(/**REDACTED**/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:1267)
...
For those API requests, they didn't init Session data so Session::get('sort_on') will be null
Trackback
For those API requests, they didn't init
Session
data soSession::get('sort_on')
will be nullhttps://github.com/cp6/my-idlers/blob/d0d2cc71ace07d3fd24feed890b19faffa64f5dd/app/Models/Server.php#L36
I manually modify this line to the following, then YABS result can be added successfully.