aboutsummaryrefslogtreecommitdiffstats
path: root/routes/shopify.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-26 22:18:56 -0700
committerAdam Soltys <[email protected]>2024-08-26 22:53:11 -0700
commit4efa82b36b74c633681ed831d6f567ae5ab08c3b (patch)
tree5c79e477a733e82f44185488e9fdc30653aacff9 /routes/shopify.ts
parentfe62cadd6fb4a7e49f7d59401fc74ae0411e32a7 (diff)
downloadcoinos-server-4efa82b36b74c633681ed831d6f567ae5ab08c3b.tar.gz
coinos-server-4efa82b36b74c633681ed831d6f567ae5ab08c3b.zip
fix some ts issues
Diffstat (limited to 'routes/shopify.ts')
-rw-r--r--routes/shopify.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/routes/shopify.ts b/routes/shopify.ts
index bcb60ea3..b28f556f 100644
--- a/routes/shopify.ts
+++ b/routes/shopify.ts
@@ -12,7 +12,11 @@ let query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) {
}
}`;
-export default async ({ body: { hash }, params: { id } }, res) => {
+export default async (req, res) => {
+ let {
+ body: { hash },
+ params: { id },
+ } = req;
let p = await g(`payment:${hash}`);
if (typeof p === "string") p = await g(`payment:${p}`);
let user = await g(`user:${p.uid}`);