mirror of
https://github.com/detleph/server.git
synced 2026-09-07 16:06:18 +02:00
Add fulldescription
This commit is contained in:
@@ -92,7 +92,8 @@ export const addEvent = async (req: Request, res: Response) => {
|
|||||||
if (
|
if (
|
||||||
typeof req.body.name !== "string" ||
|
typeof req.body.name !== "string" ||
|
||||||
typeof req.body.date !== "string" ||
|
typeof req.body.date !== "string" ||
|
||||||
typeof req.body.description !== "string"
|
typeof req.body.description !== "string" ||
|
||||||
|
req.body.fullDescription && req.body.fullDescription !== "string"
|
||||||
) {
|
) {
|
||||||
generateInvalidBodyError({
|
generateInvalidBodyError({
|
||||||
name: DataType.STRING,
|
name: DataType.STRING,
|
||||||
@@ -115,6 +116,7 @@ export const addEvent = async (req: Request, res: Response) => {
|
|||||||
pid: true,
|
pid: true,
|
||||||
id: false,
|
id: false,
|
||||||
briefDescription: true,
|
briefDescription: true,
|
||||||
|
fullDescription: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user