Skip to content

Commit

Permalink
label suffix update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsyro committed Nov 17, 2023
1 parent 56e2906 commit 842abda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/core-api/app/api/services/traction_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,21 @@ def create_oob_connection_invitation(self,party: Party):
current_app.logger.error(f"party_guid={party.party_guid} already has wallet connection, do not create another one")
raise VerificableCredentialWorkflowError("cannot make invitation if mine already has active connection")

#only have suffix if non-prod environment
my_label_suffix = (" "+Config.ENVIRONMENT_NAME) if (Config.ENVIRONMENT_NAME in ["test","dev"]) else ""
payload = {
"accept": [
"didcomm/aip1",
"didcomm/aip2;env=rfc19"
],
"alias": str(party.party_guid),
"alias": f"{party.party_name}:{str(party.party_guid)}",
"attachments": [],
"goal": f"To establish a secure connection between BC Government Mines Permitting and the mining company ({party.party_name})",
"goal_code": "issue-vc",
"handshake_protocols": [
"did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/didexchange/1.0"
],
"my_label": f"BC Mines - Chief Permitting Officer {Config.ENVIRONMENT_NAME}",
"my_label": f"BC Mines - Chief Permitting Officer{my_label_suffix}",
"use_public_did": False
}

Expand Down

0 comments on commit 842abda

Please sign in to comment.