Skip to content

Commit

Permalink
Merge pull request #18 from amor71/create-portfolio
Browse files Browse the repository at this point in the history
add logs
  • Loading branch information
amor71 authored Jul 20, 2023
2 parents dff0a6c + e643900 commit c2136ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apigateway/missions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ def handle_post(request):

if (
not payload
or not (name := payload.get(""))
or not (name := payload.get("name"))
or not (strategy := payload.get("strategy"))
):
if payload:
log_error("handle_post", f"payload={payload}")
return ("Missing or invalid payload", 400)

user_id = authenticated_user_id.get() # type: ignore
Expand Down

0 comments on commit c2136ed

Please sign in to comment.