mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
CS fixes
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user