aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);