Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] - VC Connection Webhook debugging #2747

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions services/core-api/app/api/parties/party/models/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ def business_roles_codes(self):

@hybrid_property
def digital_wallet_connection_status(self):
if self.digital_wallet_invitations:
return self.digital_wallet_invitations[0].connection_state # active >> invitation
dwi = [i for i in self.digital_wallet_invitations if i.connection_status] # filter empty conn_state
if dwi:
return dwi.connection_state # active >> invitation
else:
return None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class VerifiableCredentialWebhookResource(Resource, UserMixin):
@api.doc(description='Endpoint to recieve webhooks from Traction.', params={})
def post(self, topic):
current_app.logger.warning(f"TRACTION WEBHOOK: {request.__dict__}")
current_app.logger.warning(f"TRACTION WEBHOOK: {request.args}")
if topic == CONNECTIONS:
invitation_id = request.args.get("invi_msg_id")
vc_conn = PartyVerifiableCredentialConnection.query.unbound_unsafe().filter_by(invitation_id=invitation_id).first()
Expand Down