Decrease vacancy slots by one when firing approval event
This commit is contained in:
@@ -47,6 +47,7 @@ class PromoteUser
|
||||
public function handle(ApplicationApprovedEvent $event)
|
||||
{
|
||||
$event->application->setStatus('APPROVED');
|
||||
$event->application->response->vacancy->decrease();
|
||||
|
||||
$staffProfile = StaffProfile::create([
|
||||
'userID' => $event->application->user->id,
|
||||
|
Reference in New Issue
Block a user