From fcc1fcade0bc2a8a50d7b85592fc1238c8c864a7 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 12 Apr 2024 22:13:40 +0200 Subject: [PATCH] also reevaluate error chats --- app/Console/Commands/ReevaluateChatCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ReevaluateChatCommand.php b/app/Console/Commands/ReevaluateChatCommand.php index 6080132..b289bd0 100644 --- a/app/Console/Commands/ReevaluateChatCommand.php +++ b/app/Console/Commands/ReevaluateChatCommand.php @@ -29,7 +29,7 @@ class ReevaluateChatCommand extends Command { public function handle() { $good = 0; $bad = 0; - ChatLog::where('type', '=', 'chat') + ChatLog::whereIn('type', ['chat', 'error']) ->where('banned', false) ->orderBy('created_at') ->chunk(10000, function ($logs) use (&$good, &$bad) { -- 2.39.2