From 58e3d5233d345e03f37dcfc745d1ff09e591de6c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 21 Sep 2023 21:41:13 +0000 Subject: new rate api --- routes/shopify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routes') 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( -- cgit v1.2.3