fix: hiển thị mô tả và tên của hành trình có thêm tags

This commit is contained in:
2026-06-16 11:21:43 +07:00
parent 8cca4a83ca
commit f78c72ad60
5 changed files with 60 additions and 43 deletions
+2 -1
View File
@@ -211,10 +211,11 @@ let TourController = class TourController {
this.prisma = prisma;
}
async createTour(body, req) {
const { title, startDate, endDate, adultCount, childCount, childDiscount, tags } = body;
const { title, description, startDate, endDate, adultCount, childCount, childDiscount, tags } = body;
return this.prisma.tour.create({
data: {
title,
description,
startDate: startDate ? new Date(startDate) : null,
endDate: endDate ? new Date(endDate) : null,
tags: tags || [],
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -150,10 +150,11 @@ class TourController {
@UseGuards(JwtAuthGuard)
@Post()
async createTour(@Body() body: any, @Req() req: any) {
const { title, startDate, endDate, adultCount, childCount, childDiscount, tags } = body;
const { title, description, startDate, endDate, adultCount, childCount, childDiscount, tags } = body;
return this.prisma.tour.create({
data: {
title,
description,
startDate: startDate ? new Date(startDate) : null,
endDate: endDate ? new Date(endDate) : null,
tags: tags || [],