diff --git a/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php b/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php index a1445613c..7ff2ff229 100644 --- a/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php +++ b/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php @@ -34,11 +34,11 @@ public function createIntegrationCompany(mixed $rootValue, array $request): Mode $region = RegionRepository::getById((int) $request['input']['region']['id'], $company); $user = auth()->user(); - if(! $user->isAppOwner()) { + if (! $user->isAppOwner()) { CompaniesRepository::userAssociatedToCompany( $company, $user - ); + ); } (new ConfigValidation($integration->config, $request['input']))->validate(); diff --git a/tests/Connectors/Traits/HasShopifyConfiguration.php b/tests/Connectors/Traits/HasShopifyConfiguration.php index cd9a2025a..b0f818cf9 100644 --- a/tests/Connectors/Traits/HasShopifyConfiguration.php +++ b/tests/Connectors/Traits/HasShopifyConfiguration.php @@ -42,7 +42,7 @@ public function setupShopifyIntegration(Products $product, Regions $region) 'client_secret' => getenv('TEST_SHOPIFY_API_SECRET'), 'shop_url' => getenv('TEST_SHOPIFY_SHOP_URL'), ]; - + $integration = Integrations::where('name', 'kanvas')->firstOrFail(); $integrationDto = new IntegrationsCompany(