From: Daniel Karbach Date: Fri, 12 Apr 2024 20:13:40 +0000 (+0200) Subject: also reevaluate error chats X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=fcc1fcade0bc2a8a50d7b85592fc1238c8c864a7;p=alttp.git also reevaluate error chats --- 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) {