mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 01:38:49 -05:00
refactor: swap where('id', '=', ) for find()
This commit is contained in:
@@ -114,7 +114,7 @@ class ChatController extends Controller
|
||||
public function botMessages($botId): \Illuminate\Http\Resources\Json\AnonymousResourceCollection
|
||||
{
|
||||
$runbot = null;
|
||||
$bot = Bot::where('id', '=', $botId)->firstOrFail();
|
||||
$bot = Bot::findOrFail($botId);
|
||||
if ($bot->is_systembot) {
|
||||
$runbot = new SystemBot($this->chatRepository);
|
||||
} elseif ($bot->is_nerdbot) {
|
||||
|
||||
Reference in New Issue
Block a user