aboutsummaryrefslogtreecommitdiffstats
path: root/routes/shopify.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-24 13:18:42 -0800
committerAdam Soltys <[email protected]>2026-02-24 13:18:42 -0800
commitad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch)
treefbf2a59f81771b2938f474c8e7b35a497d2960e4 /routes/shopify.ts
parent9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff)
downloadcoinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz
coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip
formatting
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);