fix: lỗi hiển thị trong itineraryTimeline
This commit is contained in:
Vendored
+3
@@ -1582,6 +1582,7 @@ let TourController = class TourController {
|
||||
async joinByToken(body, req) {
|
||||
const { token } = body;
|
||||
console.log('[joinByToken] Request received, token length:', token ? token.length : 0);
|
||||
console.log('[joinByToken] Token received (full):', token);
|
||||
if (!token) {
|
||||
console.error('[joinByToken] No token provided');
|
||||
throw new common_1.BadRequestException('Vui lòng cung cấp token lời mời.');
|
||||
@@ -1595,6 +1596,8 @@ let TourController = class TourController {
|
||||
console.error('[joinByToken] Invitation not found for token:', token.substring(0, 20) + '...');
|
||||
const totalInvitations = await this.prisma.tourInvitation.count();
|
||||
console.log('[joinByToken] Total invitations in database:', totalInvitations);
|
||||
const allInvitations = await this.prisma.tourInvitation.findMany({ select: { token: true, email: true, tourId: true } });
|
||||
console.log('[joinByToken] All invitation tokens:', allInvitations);
|
||||
throw new common_1.NotFoundException('Lời mời không hợp lệ hoặc đã bị hủy.');
|
||||
}
|
||||
const userEmail = req.user.email;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 868 KiB |
Reference in New Issue
Block a user