Skip to content

Commit

Permalink
return slug on PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Apr 24, 2024
1 parent 6ef1578 commit 12fbdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/src/routes/autoimages.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def document(autoimage_slug: ObjectId, user: dict):
AutoImages().update_one({"slug": autoimage_slug}, {"$set": request_json})
# we blank image status so periodic-tasks will recreate it
AutoImages.update_status(autoimage_slug, status=None)
return jsonify(autoimage)
return jsonify({"slug": request_json["slug"]})

elif request.method == "DELETE":
ensure_user_matches_role(user, Users.MANAGER_ROLE)
Expand Down

0 comments on commit 12fbdcc

Please sign in to comment.