Skip to content

Commit

Permalink
Fixes passportxyz#107, SubmitPassportPayload handle community_id
Browse files Browse the repository at this point in the history
  • Loading branch information
minhoryang authored Feb 21, 2023
1 parent c834974 commit 089cd85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/registry/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

class SubmitPassportPayload(Schema):
address: str
community: str
community_id: int
signature: str = ""
nonce: str = ""

Expand Down Expand Up @@ -177,7 +177,7 @@ def submit_passport(request, payload: SubmitPassportPayload) -> DetailedScoreRes

# Get community object
user_community = get_object_or_404(
Community, id=payload.community, account=request.auth
Community, id=payload.community_id, account=request.auth
)

# Verify the signer
Expand Down

0 comments on commit 089cd85

Please sign in to comment.