From 3ec511ba930dda883b6ea5ea878afc32b81365c8 Mon Sep 17 00:00:00 2001 From: KaiWissel Date: Tue, 27 Dec 2022 20:55:23 +0100 Subject: [PATCH] show icon when there are comments on flight --- client/src/components/FlightInfoIcons.vue | 5 ++--- server/controller/CommentController.js | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/components/FlightInfoIcons.vue b/client/src/components/FlightInfoIcons.vue index d64fb8f64..43a6fb2a5 100644 --- a/client/src/components/FlightInfoIcons.vue +++ b/client/src/components/FlightInfoIcons.vue @@ -1,11 +1,12 @@ - - - diff --git a/server/controller/CommentController.js b/server/controller/CommentController.js index 9aa52ccaf..28050072b 100644 --- a/server/controller/CommentController.js +++ b/server/controller/CommentController.js @@ -3,6 +3,7 @@ const router = express.Router(); const service = require("../service/CommentService"); const mailService = require("../service/MailService"); const { NOT_FOUND } = require("../constants/http-status-constants"); +const { deleteCache } = require("./CacheManager"); const { requesterMustBeLoggedIn, requesterIsNotOwner } = require("./Auth"); const { @@ -63,6 +64,8 @@ router.post( mailService.sendNewFlightCommentMail(comment); res.json(comment); + + deleteCache("flights"); } catch (error) { next(error); }