aboutsummaryrefslogtreecommitdiffstats
path: root/routes/shopify.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-11-23 23:08:09 -0800
committerAdam Soltys <[email protected]>2023-11-23 23:34:35 -0800
commit13f3c21b9ddf9884f190a6fcf7acf50440c82547 (patch)
treed29a3d8c91b9f5df5e38990800a3259732dc557b /routes/shopify.js
parent04a941b76b916384a3215502d362f4f3b51074a5 (diff)
downloadcoinos-server-13f3c21b9ddf9884f190a6fcf7acf50440c82547.tar.gz
coinos-server-13f3c21b9ddf9884f190a6fcf7acf50440c82547.zip
use payment ids
Diffstat (limited to 'routes/shopify.js')
-rw-r--r--routes/shopify.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/shopify.js b/routes/shopify.js
index aaecbed0..5d972372 100644
--- a/routes/shopify.js
+++ b/routes/shopify.js
@@ -14,6 +14,7 @@ let query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) {
export default async ({ body: { hash }, params: { id } }, res) => {
let p = await g(`payment:${hash}`);
+ if (typeof p === "string") p = await g(`payment:${p}`);
let user = await g(`user:${p.uid}`);
try {