aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
Diffstat (limited to 'site')
-rw-r--r--site/obu.hamlet6
1 files changed, 3 insertions, 3 deletions
diff --git a/site/obu.hamlet b/site/obu.hamlet
index 7068014..ed8017a 100644
--- a/site/obu.hamlet
+++ b/site/obu.hamlet
@@ -1,7 +1,7 @@
<h1>_{MsgOBU}
<section>
- <h2>#{tripId} _{Msgon} #{day}
+ <h2>#{ticketTripName} _{Msgon} #{ticketDay}
<strong>Token:</strong> <span id="token">
<section>
@@ -107,10 +107,10 @@
async function main() {
- let trip = await (await fetch("/api/trip/#{tripId}")).json();
+ let trip = await (await fetch("/api/trip/#{ticketTripName}")).json();
console.log("got trip info");
- token = await (await fetch("/api/train/register/#{tripId}", {
+ token = await (await fetch("/api/train/register/#{UUID.toText ticketId}", {
method: "POST",
body: JSON.stringify({agent: "onboard-unit"}),
headers: {"Content-Type": "application/json"}