update accoutant role

This commit is contained in:
Joseph 2024-11-04 07:39:36 +07:00
parent 1d9e428587
commit f96f445c7f
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ class CheckUserAttendanceJob implements ShouldQueue
public function handle()
{
// Lấy tất cả người dùng
$users = User::where('permission', 'not like', '%admin%')->get();
$users = User::where('permission', 'not like', '%admin%')
->where('permission', 'not like', '%accountant%')->get();
foreach ($users as $key => $user) {
// if ($user->id != 4) {
// continue;