mirror of
https://github.com/detleph/server.git
synced 2026-09-04 16:46:04 +02:00
Add debugging code
+ Small fix in the event controller + Add development flag to the dev container
This commit is contained in:
@@ -14,13 +14,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) => {
|
||||
|
||||
Reference in New Issue
Block a user