From f3e428bd0e683519d5cd3b5edac4cd8464871636 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Mon, 8 Jan 2024 14:46:57 +0200 Subject: [PATCH] fixing remove user responed 200 --- routes/eventRoutes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/eventRoutes.py b/routes/eventRoutes.py index 4946ea0..178e22a 100644 --- a/routes/eventRoutes.py +++ b/routes/eventRoutes.py @@ -14,7 +14,6 @@ def create_event(): try: data = request.json data['user_id'] = g.user_id - print(data) new_event = EventService.create_event(data) if new_event: return jsonify(new_event.to_dict()), 201 @@ -91,5 +90,5 @@ def unattend_event(event_id): # Check if there's an error in the response if 'error' in response: return jsonify({'error': response['error']}), 400 # Or another appropriate status code - + return jsonify({'message': response['message']}), 200 \ No newline at end of file