X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FConsole%2FCommands%2FChatlibDatabase.php;fp=app%2FConsole%2FCommands%2FChatlibDatabase.php;h=cb7978f6e92bb84074c183354dc85f04766d1d36;hb=f18af7cfb219ab9c07635ea8bbae80f2a9cee78e;hp=13c881a902a5589a8b31849c422dbf4259dbbf4a;hpb=771f1761f0abec996838c0ccc71cec0219bad71a;p=alttp.git diff --git a/app/Console/Commands/ChatlibDatabase.php b/app/Console/Commands/ChatlibDatabase.php index 13c881a..cb7978f 100644 --- a/app/Console/Commands/ChatlibDatabase.php +++ b/app/Console/Commands/ChatlibDatabase.php @@ -30,7 +30,8 @@ class ChatlibDatabase extends Command { public function handle() { $db = new ChatLib(); - ChatLog::where('banned', '=', false) + ChatLog::where('type', '=', 'chat') + ->where('banned', '=', false) ->whereNotNull('evaluated_at') ->chunk(500, function ($msgs) use ($db) { foreach ($msgs as $msg) {