fix(iam): resolve post-merge type errors, migration drift, and IAM integration bugs

This commit is contained in:
Abubeker Yasin
2026-06-22 12:12:35 +03:00
parent 7108035f7e
commit e2071b4ff3
5 changed files with 83 additions and 54 deletions

View File

@@ -242,7 +242,7 @@ The API automatically detects:
description: 'Invalid JWT token (only if token provided but invalid)'
})
registerPassenger(@Body() dto: RegisterPassengerDto, @Request() req: any) {
const userId = req.user?.id ?? req.user?.userId;
const userId = req.user?.id;
return this.service.registerPassenger({ ...dto, userId });
}