aboutsummaryrefslogtreecommitdiffstats
path: root/routes/shopify.ts
diff options
context:
space:
mode:
Diffstat (limited to 'routes/shopify.ts')
-rw-r--r--routes/shopify.ts21
1 files changed, 9 insertions, 12 deletions
diff --git a/routes/shopify.ts b/routes/shopify.ts
index ff601963..d955d73d 100644
--- a/routes/shopify.ts
+++ b/routes/shopify.ts
@@ -25,19 +25,16 @@ export default async (req, res) => {
try {
const r = await got
- .post(
- `https://${user.shopifyStore}.myshopify.com/admin/api/2023-07/graphql.json`,
- {
- headers: {
- "Content-Type": "application/json",
- "X-Shopify-Access-Token": user.shopifyToken,
- },
- json: {
- query,
- variables: { input: { id: `gid://shopify/Order/${id}` } },
- },
+ .post(`https://${user.shopifyStore}.myshopify.com/admin/api/2023-07/graphql.json`, {
+ headers: {
+ "Content-Type": "application/json",
+ "X-Shopify-Access-Token": user.shopifyToken,
},
- )
+ json: {
+ query,
+ variables: { input: { id: `gid://shopify/Order/${id}` } },
+ },
+ })
.json();
l("shopify success", r);