From ccbf0cbaaf414d638fd9034b0c5eb5037beaac30 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 20 Sep 2023 16:39:33 -0700 Subject: whitelist token --- routes/shopify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/shopify.js b/routes/shopify.js index a0aab057..9cbbb02b 100644 --- a/routes/shopify.js +++ b/routes/shopify.js @@ -12,7 +12,8 @@ let query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) { }`; export default async ({ body, params: { id, username } }, res) => { - let user = await g(`user:${await g(`user:${username}`)}`); + let { uid } = body; + let user = await g(`user:${uid}`); let r = await got .post( -- cgit v1.2.3