refactor( iam ): migrate guest booking to IAM; make Passenger.userId nullable

This commit is contained in:
Abubeker Yasin
2026-06-08 15:27:32 +03:00
parent ac153fb0d0
commit c1dcfb04c3
11 changed files with 99 additions and 357 deletions

View File

@@ -27,7 +27,7 @@ export class DashboardService {
const hour = now.getHours();
const greetingKey = hour < 12 ? 'MORNING' : hour < 17 ? 'AFTERNOON' : 'EVENING';
const firstName = passenger?.user.fullName.split(' ')[0] ?? '';
const firstName = passenger?.user?.fullName?.split(' ')[0] ?? '';
const seat = upcomingBooking?.seats[0];
return {