diff --git a/backend/gn_module_zh/blueprint.py b/backend/gn_module_zh/blueprint.py index 8641583b..429b9a9d 100644 --- a/backend/gn_module_zh/blueprint.py +++ b/backend/gn_module_zh/blueprint.py @@ -748,13 +748,11 @@ def patch_file(id_media): DB.session.commit() - return jsonify( - { - "media_path": upload_resp["media_path"], - "secured_file_name": upload_resp["secured_file_name"], - "id_media": upload_resp["id_media"], - } - ) + return { + "media_path": upload_resp["media_path"], + "secured_file_name": upload_resp["secured_file_name"], + "id_media": upload_resp["id_media"], + } @blueprint.route("/", methods=["DELETE"])