From 47d2096bda8de63fc31f34b12fbc9f23472739bf Mon Sep 17 00:00:00 2001 From: arfenis Date: Tue, 23 May 2023 00:22:20 -0400 Subject: [PATCH] Remove user from user company apps on db --- src/Kanvas/Users/Actions/RemoveCompanyAction.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Kanvas/Users/Actions/RemoveCompanyAction.php b/src/Kanvas/Users/Actions/RemoveCompanyAction.php index 137ed3365..c0585830c 100644 --- a/src/Kanvas/Users/Actions/RemoveCompanyAction.php +++ b/src/Kanvas/Users/Actions/RemoveCompanyAction.php @@ -35,6 +35,12 @@ public function __construct( */ public function execute(): void { + $this->company->associateUserApp( + $this->user, + $this->app, + StateEnums::YES->getValue(), + )->delete(); + $this->company->associateUser( $this->user, StateEnums::YES->getValue(),