From 29365984a3c05f01fe57e648a7ccb557fdc723cb Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Mon, 11 Nov 2024 08:45:16 +0100
Subject: [PATCH] fix some namespace responses
---
app/namespaces/users/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/namespaces/users/__init__.py b/app/namespaces/users/__init__.py
index 37025224..42e2f9e3 100644
--- a/app/namespaces/users/__init__.py
+++ b/app/namespaces/users/__init__.py
@@ -11,7 +11,7 @@ class UsersNamespace(Namespace):
user_id = hashids.decode(user_hashid)
if not isinstance(user_id, int):
- return {'code': 400, 'msg': 'Bad Request'}
+ return {'status': 400, 'statusText': 'Bad Request'}
user = User.query.get(user_id)
@@ -38,7 +38,7 @@ class UsersNamespace(Namespace):
user_id = hashids.decode(user_hashid)
if not isinstance(user_id, int):
- return {'code': 400, 'msg': 'Bad Request'}
+ return {'status': 400, 'statusText': 'Bad Request'}
user = User.query.get(user_id)
@@ -60,7 +60,7 @@ class UsersNamespace(Namespace):
user_id = hashids.decode(user_hashid)
if not isinstance(user_id, int):
- return {'code': 400, 'msg': 'Bad Request'}
+ return {'status': 400, 'statusText': 'Bad Request'}
user = User.query.get(user_id)