Skip to content

Commit

Permalink
Merge branch 'mds-5553-correction' into mds-5553
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsyro committed Oct 26, 2023
2 parents 64e7607 + 4bc2f19 commit 8471e2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 8471e2a

Please sign in to comment.