X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FConsole%2FCommands%2FReevaluateChatCommand.php;h=b289bd0bde84b9a36ae92c9a75196f96cc547497;hb=fcc1fcade0bc2a8a50d7b85592fc1238c8c864a7;hp=6080132a480423a3482e962b918327d073bb7dc8;hpb=b58fe6e53fa99e2389519bad8a6ada07597e8dfd;p=alttp.git 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) {