This commit is contained in:
2026-05-26 23:30:22 +12:00
parent 135a5a3b83
commit 91b22c6d60
27 changed files with 2401 additions and 88 deletions
+6 -1
View File
@@ -3165,7 +3165,12 @@ async def owner_client_enquiry(request: Request):
"referrer": "",
"page": "",
}
return {"ok": True, "enquiry": enquiry}
# Journey is populated by the SvelteKit /api/track/promote endpoint when
# the visitor submits the booking form. None means we never recorded a
# journey for this email (legacy submission, ad-blocker that also blocked
# /api/track, or DB-less local dev).
journey = await admin_db.get_submission_journey(email)
return {"ok": True, "enquiry": enquiry, "journey": journey}
@app.get("/owner/activity")