fix: lỗi bong bóng Tour vẫn hiển thị sau khi xóa
This commit is contained in:
Vendored
+3
-1
@@ -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;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user