From 31868f47cd1b18ef04cbfcb1aa3ca5a7802c2ca8 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 24 Oct 2024 15:55:28 +0200 Subject: [PATCH] CS fixes --- app/Models/RoleStat.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/RoleStat.php b/app/Models/RoleStat.php index acd6e14f2..34d646fc3 100644 --- a/app/Models/RoleStat.php +++ b/app/Models/RoleStat.php @@ -19,6 +19,7 @@ class RoleStat extends Model // Check if we already have the information and if we do just update the count if (self::query()->where('role', $role->name)->exists()) { self::query()->where('role', $role->name)->update(['users' => $role->users_count]); + continue; } self::query()->create(['role' => $role->name, 'users' => $role->users_count]);