Fix internal event for ON_LEAVE

This commit is contained in:
Nabeel Shahzad 2021-02-17 18:57:16 -05:00
parent cbb7d6e274
commit bd85a04530

View File

@ -462,7 +462,7 @@ class UserService extends Service
$user->state = UserState::ON_LEAVE;
$user->save();
event(new UserStateChanged($user, UserState::ACTIVE));
event(new UserStateChanged($user, UserState::ON_LEAVE));
$user->refresh();
return $user;