]> git.localhorst.tv Git - alttp.git/commitdiff
also reevaluate error chats
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Apr 2024 20:13:40 +0000 (22:13 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Apr 2024 20:13:40 +0000 (22:13 +0200)
app/Console/Commands/ReevaluateChatCommand.php

index 6080132a480423a3482e962b918327d073bb7dc8..b289bd0bde84b9a36ae92c9a75196f96cc547497 100644 (file)
@@ -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) {