Fix internal event for ON_LEAVE
This commit is contained in:
parent
cbb7d6e274
commit
bd85a04530
@ -462,7 +462,7 @@ class UserService extends Service
|
|||||||
$user->state = UserState::ON_LEAVE;
|
$user->state = UserState::ON_LEAVE;
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
event(new UserStateChanged($user, UserState::ACTIVE));
|
event(new UserStateChanged($user, UserState::ON_LEAVE));
|
||||||
|
|
||||||
$user->refresh();
|
$user->refresh();
|
||||||
return $user;
|
return $user;
|
||||||
|
Loading…
Reference in New Issue
Block a user