Skip to content

Commit

Permalink
fix: fix delete AddressType (#7369)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis Saettler <[email protected]>
  • Loading branch information
IbrahimHammash1 and asbiin authored Oct 6, 2024
1 parent a2492ed commit 1343fd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace App\Domains\Settings\ManageAddressTypes\Web\Controllers;

use App\Domains\Settings\ManageAddressTypes\Services\CreateAddressType;
use App\Domains\Settings\ManageAddressTypes\Services\DestroyAddressType;
use App\Domains\Settings\ManageAddressTypes\Services\UpdateAddressType;
use App\Domains\Settings\ManageAddressTypes\Web\ViewHelpers\PersonalizeAddressTypeIndexViewHelper;
use App\Domains\Settings\ManagePronouns\Services\DestroyPronoun;
use App\Domains\Vault\ManageVault\Web\ViewHelpers\VaultIndexViewHelper;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
Expand Down Expand Up @@ -61,7 +61,7 @@ public function destroy(Request $request, int $addressTypeId)
'address_type_id' => $addressTypeId,
];

(new DestroyPronoun)->execute($data);
(new DestroyAddressType)->execute($data);

return response()->json([
'data' => true,
Expand Down

0 comments on commit 1343fd5

Please sign in to comment.