Skip to content

Commit

Permalink
Merge pull request #62 from naturalsolutions/2.14/fix/bug_media_json
Browse files Browse the repository at this point in the history
fix: reparation du bug lors de la modification de la description d'un media onglet 8
  • Loading branch information
edelclaux authored May 21, 2024
2 parents 2d6ad5c + 95d76d3 commit f44f7a1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 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(
{
"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("/<int:id_zh>", methods=["DELETE"])
Expand Down

0 comments on commit f44f7a1

Please sign in to comment.