mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 19:00:55 +00:00
Update manage booking
This commit is contained in:
@@ -285,7 +285,11 @@ export class NotificationsService {
|
||||
const ref = booking?.bookingRef ?? payload.booking.bookingRef;
|
||||
const amount = this.formatAmount(booking ?? payload.booking);
|
||||
const currency = (booking ?? payload.booking).displayCurrency ?? 'ETB';
|
||||
const ticketUrl = `${process.env.PORTAL_URL ?? 'http://localhost:5174'}/booking/confirmation?ref=${ref}`;
|
||||
// /booking/confirmation only reads from the in-session booking store, so it's a dead
|
||||
// link once opened outside that session (a different device, or later on the same
|
||||
// one) — exactly the case an SMS/email link is for. /booking/detail fetches the
|
||||
// booking fresh from the API by ref, so it works standalone.
|
||||
const ticketUrl = `${process.env.PORTAL_URL ?? 'http://localhost:5174'}/booking/detail?ref=${ref}`;
|
||||
|
||||
// IN_APP — always created.
|
||||
await this.createInAppNotification(
|
||||
|
||||
Reference in New Issue
Block a user