This repository was archived by the owner on Nov 30, 2022. It is now read-only.
File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,7 @@ protected function getArguments(): array
54
54
public function handle ()
55
55
{
56
56
$ result = parent ::handle ();
57
-
58
57
$ topic = Util::getGraphQLWebhookTopic ($ this ->argument ('topic ' ));
59
-
60
58
$ type = $ this ->getUrlFromName ($ this ->argument ('name ' ));
61
59
$ address = route (Util::getShopifyConfig ('route_names.webhook ' ), $ type );
62
60
Original file line number Diff line number Diff line change @@ -384,10 +384,9 @@ public function createWebhook(array $payload): ResponseAccess
384
384
}
385
385
' ;
386
386
387
- // change REST-format topics ("resource/event")
388
- // to GraphQL-format topics ("RESOURCE_EVENT") for pre-v17 compatibility
387
+ // Change REST-format topics ("resource/event")
388
+ // to GraphQL-format topics ("RESOURCE_EVENT"), for pre-v17 compatibility
389
389
$ topic = Util::getGraphQLWebhookTopic ($ payload ['topic ' ]);
390
-
391
390
$ variables = [
392
391
'topic ' => $ topic ,
393
392
'webhookSubscription ' => [
Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ public function testGraphQLWebhookTopic(): void
87
87
{
88
88
// REST-format topics are changed to the GraphQL format
89
89
$ topics = [
90
- 'app/uninstalled ' => 'APP_UNINSTALLED ' ,
90
+ 'app/uninstalled ' => 'APP_UNINSTALLED ' ,
91
91
'orders/partially_fulfilled ' => 'ORDERS_PARTIALLY_FULFILLED ' ,
92
- 'order_transactions/create ' => 'ORDER_TRANSACTIONS_CREATE ' ,
92
+ 'order_transactions/create ' => 'ORDER_TRANSACTIONS_CREATE ' ,
93
93
];
94
94
95
95
foreach ($ topics as $ restTopic => $ graphQLTopic ) {
You can’t perform that action at this time.
0 commit comments