aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-30 06:32:08 +0000
committerAdam Soltys <[email protected]>2024-11-30 06:32:10 +0000
commita291e249349475f5c4d8c27d111af6d498eefd8f (patch)
treeee52a16c81951cb5519f6347f9a8442316391360
parent79c048ccf50705fb786c885baf66f713ae70cf9c (diff)
downloadcoinos-server-a291e249349475f5c4d8c27d111af6d498eefd8f.tar.gz
coinos-server-a291e249349475f5c4d8c27d111af6d498eefd8f.zip
shopify logging
-rw-r--r--routes/shopify.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/routes/shopify.ts b/routes/shopify.ts
index 33592705..ff601963 100644
--- a/routes/shopify.ts
+++ b/routes/shopify.ts
@@ -1,6 +1,6 @@
import got from "got";
import { g } from "$lib/db";
-import { err } from "$lib/logging";
+import { l, err } from "$lib/logging";
import { getPayment } from "$lib/utils";
const query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) {
@@ -21,6 +21,8 @@ export default async (req, res) => {
const p = await getPayment(hash);
const user = await g(`user:${p.uid}`);
+ l("marking shopify order paid", id, user.username, p.id, user.shopifyStore);
+
try {
const r = await got
.post(
@@ -38,6 +40,8 @@ export default async (req, res) => {
)
.json();
+ l("shopify success", r);
+
res.send(r);
} catch (e) {
err("problem marking shopify order as paid", e.message);