Merge branch 'dev' into feature-email-verification

This commit is contained in:
Stefan
2022-04-29 11:40:28 +02:00
committed by GitHub
8 changed files with 184 additions and 19 deletions
+7 -7
View File
@@ -19,13 +19,13 @@ export const getAllEvents = async (req: Request, res: Response) => {
id: false,
},
});
if (events.length > 0)
res.status(200).json({
type: "success",
payload: {
events,
},
});
res.status(200).json({
type: "success",
payload: {
events,
},
});
};
export const getEvent = async (req: Request, res: Response) => {