diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
| commit | ad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch) | |
| tree | fbf2a59f81771b2938f474c8e7b35a497d2960e4 /routes/shopify.ts | |
| parent | 9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff) | |
| download | coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip | |
formatting
Diffstat (limited to 'routes/shopify.ts')
| -rw-r--r-- | routes/shopify.ts | 21 |
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); |
