Fix findUsersOnleave Function (#1042)

Query was checking status field instead of state field to find active users.
This commit is contained in:
B.Fatih KOZ
2021-02-22 19:23:50 +03:00
committed by GitHub
parent b4d5c0fbcd
commit baf63361a0

View File

@@ -270,7 +270,7 @@ class UserService extends Service
$return_users = [];
$date = Carbon::now('UTC');
$users = User::with(['last_pirep'])->where('status', UserState::ACTIVE)->get();
$users = User::with(['last_pirep'])->where('state', UserState::ACTIVE)->get();
/** @var User $user */
foreach ($users as $user) {