diff options
| author | Adam Soltys <[email protected]> | 2023-09-21 21:41:13 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-09-21 21:41:32 +0000 |
| commit | 58e3d5233d345e03f37dcfc745d1ff09e591de6c (patch) | |
| tree | 24adbdedc8f0e8ee3e1801b7699a4aa976399341 /routes | |
| parent | ccbf0cbaaf414d638fd9034b0c5eb5037beaac30 (diff) | |
| download | coinos-server-58e3d5233d345e03f37dcfc745d1ff09e591de6c.tar.gz coinos-server-58e3d5233d345e03f37dcfc745d1ff09e591de6c.zip | |
new rate api
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/shopify.js | 6 |
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( |
