Skip to content

Commit

Permalink
fix bug media json
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Corny authored and edelclaux committed May 21, 2024
1 parent 0cddada commit b1f41f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/gn_module_zh/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,11 @@ def patch_file(id_media):

DB.session.commit()

return jsonify(
{
return {
"media_path": upload_resp["media_path"],
"secured_file_name": upload_resp["secured_file_name"],
"id_media": upload_resp["id_media"],
}
)


@blueprint.route("/<int:id_zh>", methods=["DELETE"])
Expand Down

0 comments on commit b1f41f6

Please sign in to comment.