aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/shopify.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/shopify.js b/routes/shopify.js
index 9cbbb02b..0eb4dd27 100644
--- a/routes/shopify.js
+++ b/routes/shopify.js
@@ -11,9 +11,9 @@ let query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) {
}
}`;
-export default async ({ body, params: { id, username } }, res) => {
- let { uid } = body;
- let user = await g(`user:${uid}`);
+export default async ({ body: { hash }, params: { id } }, res) => {
+ let p = await g(`payment:${hash}`);
+ let user = await g(`user:${p.uid}`);
let r = await got
.post(