Add fulldescription

This commit is contained in:
Stephan
2022-05-18 08:27:11 +02:00
committed by La_Felx
parent 734acbab38
commit b1c1e53a2d
+3 -1
View File
@@ -92,7 +92,8 @@ export const addEvent = async (req: Request, res: Response) => {
if (
typeof req.body.name !== "string" ||
typeof req.body.date !== "string" ||
typeof req.body.description !== "string"
typeof req.body.description !== "string" ||
req.body.fullDescription && req.body.fullDescription !== "string"
) {
generateInvalidBodyError({
name: DataType.STRING,
@@ -115,6 +116,7 @@ export const addEvent = async (req: Request, res: Response) => {
pid: true,
id: false,
briefDescription: true,
fullDescription: true,
},
});