@@ -244,7 +244,7 @@ eventsRouter.delete('/:eventId', async (req: Request, res: Response) => {
|
||||
let success = await EventService.deleteEvent(event);
|
||||
|
||||
if (success) {
|
||||
res.status(200).send({'message': 'Event was successfully updated'});
|
||||
res.status(200).send({'message': 'Event was successfully deleted'});
|
||||
} else {
|
||||
res.status(500).send({'message': 'An error occurred during deletion. Please try again.'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user