aboutsummaryrefslogtreecommitdiffstats
path: root/routes/shopify.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-31 09:29:04 -0700
committerAdam Soltys <[email protected]>2024-10-31 09:34:42 -0700
commitaa4cd39c943b67169def224e224bd07b815b70ec (patch)
tree2af857ac971705f4d20eb017864f0365d0b57ea6 /routes/shopify.ts
parentbc9c04f6519f32d3b444d4df0b276eba960480a9 (diff)
downloadcoinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.tar.gz
coinos-server-aa4cd39c943b67169def224e224bd07b815b70ec.zip
biome lint
Diffstat (limited to 'routes/shopify.ts')
-rw-r--r--routes/shopify.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/routes/shopify.ts b/routes/shopify.ts
index f5c26208..33592705 100644
--- a/routes/shopify.ts
+++ b/routes/shopify.ts
@@ -3,7 +3,7 @@ import { g } from "$lib/db";
import { err } from "$lib/logging";
import { getPayment } from "$lib/utils";
-let query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) {
+const query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) {
orderMarkAsPaid(input: $input) {
order { id }
userErrors {
@@ -14,15 +14,15 @@ let query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) {
}`;
export default async (req, res) => {
- let {
+ const {
body: { hash },
params: { id },
} = req;
- let p = await getPayment(hash);
- let user = await g(`user:${p.uid}`);
+ const p = await getPayment(hash);
+ const user = await g(`user:${p.uid}`);
try {
- let r = await got
+ const r = await got
.post(
`https://${user.shopifyStore}.myshopify.com/admin/api/2023-07/graphql.json`,
{