Skip to content

Commit

Permalink
Return type regration
Browse files Browse the repository at this point in the history
  • Loading branch information
arfenis committed Aug 2, 2024
1 parent 514ce1d commit 9cffae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/GraphQL/Connector/Shopify/Mutations/ShopifyMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class ShopifyMutation
{
public function shopifySetup(mixed $root, array $request): String
public function shopifySetup(mixed $root, array $request): bool
{
$user = auth()->user();
$company = isset($request['company_id']) ? Companies::getById($request['company_id']) : $user->getCurrentCompany();
Expand All @@ -24,8 +24,7 @@ public function shopifySetup(mixed $root, array $request): String
$shopifyDto = ShopifyDto::viaRequest($request['input'], $app, $company);

Client::getInstance($app, $company, $shopifyDto->region)->Shop->get();
ShopifyService::shopifySetup($shopifyDto);

return "Shopify Integration Successfully";
return ShopifyService::shopifySetup($shopifyDto);
}
}
2 changes: 1 addition & 1 deletion graphql/schemas/Connector/shopify.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ input ShopifySetupInput {
}

extend type Mutation @guard {
shopifySetup(input: ShopifySetupInput!): String
shopifySetup(input: ShopifySetupInput!): Boolean
@field(
resolver: "App\\GraphQL\\Connector\\Shopify\\Mutations\\ShopifyMutation@shopifySetup"
)
Expand Down

0 comments on commit 9cffae9

Please sign in to comment.