Skip to content

Commit

Permalink
Merge pull request #34 from PCS-Poli-USP/bugfix/email
Browse files Browse the repository at this point in the history
fix: optional email
  • Loading branch information
aguenaro authored Dec 19, 2023
2 parents 566d872 + dafd7ab commit 9c9f1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blueprints/mobile_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def get_classes():
@mobile_blueprint.route("/comments", methods=["POST"])
def post_comment():
try:
email = request.json["email"]
comment = request.json["comment"]
email = request.json.get("email")
comment = request.json.get("comment")

comment_doc = {
"email": email,
Expand Down

0 comments on commit 9c9f1f6

Please sign in to comment.