Event zod add pid/id; rm comented MediaRouter

This commit is contained in:
Laurin
2022-05-22 12:48:37 +02:00
parent 4555d46902
commit 4e77d3c66d
2 changed files with 2 additions and 3 deletions
+2
View File
@@ -9,6 +9,8 @@ import { createInsufficientPermissionsError, DataType, generateError, generateIn
require("express-async-errors");
const EventBody = z.object({
pid: z.string().max(0),
id: z.string().max(0),
name: z.string(),
date: z.string(),
briefDescription: z.string(),
-3
View File
@@ -65,9 +65,6 @@ async function main() {
// Error handling
app.use(defaultErrorHandler); // This has to be the LAST ROUTE
// Disable the media router for now
// app.use("/api/media", mediaRouter);
app.listen(process.env.PORT, () => {
logger.info(`Listening on port ${process.env.PORT}`);
});