Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Commit c488912

Browse files
committed
fix(calendar): 🐛 Rerender frontend on new calendar event
1 parent 2859b57 commit c488912

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/controllers/CalendarController.ts

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Request, Response } from "express";
33
import { validationResult } from "express-validator";
44
import Core from "../Core.js";
55
import { ERROR_VALIDATION } from "../util/Errors.js";
6+
import { rerenderFrontend } from "../util/Frontend.js";
67

78
class CalendarController {
89
private core: Core;
@@ -75,6 +76,8 @@ class CalendarController {
7576
},
7677
});
7778

79+
rerenderFrontend("/calendar", {});
80+
7881
res.send(event);
7982
}
8083

src/util/Frontend.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const frontendRoutes = [
2525
"/404",
2626
"/500",
2727
"/contact",
28+
"/calendar",
2829
"/",
2930
"/map",
3031
"/about",

0 commit comments

Comments
 (0)