refactor(user): rename to toJson back

This commit is contained in:
2025-10-26 15:23:06 +03:00
parent 67c06a0203
commit 4ad7869e27
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ def login():
return "Password is too short", 400
user = User(email, password)
return jsonify(user.toDictionary())
return jsonify(user.toJson())
else:
return "Request is not a json", 400