fix: lỗi bong bóng Tour vẫn hiển thị sau khi xóa

This commit is contained in:
2026-06-17 17:15:11 +07:00
parent 4d63bff214
commit 05dc80bb6d
4 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -344,7 +344,7 @@ let TourController = class TourController {
}
async createTour(body, req) {
const { title, description, startDate, endDate, adultCount, childCount, childDiscount, tags } = body;
return this.prisma.tour.create({
const tour = await this.prisma.tour.create({
data: {
title,
description,
@@ -374,6 +374,8 @@ let TourController = class TourController {
}
}
});
await this.cacheManager.del(`/api/v1/tours/explore`);
return tour;
}
async addLocation(tourId, body, req) {
const legId = body.legId;