From 50e10bc567e4993b4a1c4d70e1f2ceb1fdc94331 Mon Sep 17 00:00:00 2001 From: julzh Date: Fri, 4 Dec 2020 19:51:27 +1300 Subject: [PATCH] Fix bug that returns an error when 'interval' field included on appRecurringPricingDetails --- server/getSubscriptionUrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/getSubscriptionUrl.js b/server/getSubscriptionUrl.js index 6d242ca..cbc533c 100644 --- a/server/getSubscriptionUrl.js +++ b/server/getSubscriptionUrl.js @@ -35,7 +35,7 @@ const getSubscriptionUrl = async (ctx, accessToken, shop) => { }` }); - const response = await fetch(`https://${shop}/admin/api/2019-07/graphql.json`, { + const response = await fetch(`https://${shop}/admin/api/2020-10/graphql.json`, { method: 'POST', headers: { 'Content-Type': 'application/json',