diff options
| author | Adam Soltys <[email protected]> | 2023-09-20 16:39:33 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-09-20 16:39:33 -0700 |
| commit | ccbf0cbaaf414d638fd9034b0c5eb5037beaac30 (patch) | |
| tree | 251c7d31dcf513ec0786dd80ec39d749c3b87d4d /routes | |
| parent | 948efb0f123532c9f276831b485a9769cbe6b413 (diff) | |
| download | coinos-server-ccbf0cbaaf414d638fd9034b0c5eb5037beaac30.tar.gz coinos-server-ccbf0cbaaf414d638fd9034b0c5eb5037beaac30.zip | |
whitelist token
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/shopify.js | 3 |
1 files changed, 2 insertions, 1 deletions
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( |
