From fb0d855fac886648c946df652becf86a831dee7c Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Wed, 4 Dec 2024 20:31:59 -0700 Subject: [PATCH] rename variables for clarity --- src/views/NewEditProjectView.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/NewEditProjectView.vue b/src/views/NewEditProjectView.vue index 9164822..9563cd5 100644 --- a/src/views/NewEditProjectView.vue +++ b/src/views/NewEditProjectView.vue @@ -590,12 +590,12 @@ export default class NewEditProjectView extends Vue { if (settings.partnerApiServer) { partnerServer = settings.partnerApiServer; } - const trustrootsUrl = partnerServer + "/api/partner/link"; + const endorserPartnerUrl = partnerServer + "/api/partner/link"; const timeSafariUrl = window.location.origin + "/claim/" + jwtId; const content = this.fullClaim.name + " - see " + timeSafariUrl; // Why does IntelliJ not see matching types? const payload = serializeEvent(signedPayload); - const trustrootsParams = { + const partnerParams = { jwtId: jwtId, linkCode: linkCode, inputJson: JSON.stringify(content), @@ -603,12 +603,11 @@ export default class NewEditProjectView extends Vue { pubKeyImage: payload, pubKeySigHex: signedPayload.sig, }; - const fullTrustrootsUrl = trustrootsUrl; const headers = await getHeaders(this.activeDid); try { const linkResp = await this.axios.post( - fullTrustrootsUrl, - trustrootsParams, + endorserPartnerUrl, + partnerParams, { headers }, ); if (linkResp.status === 201) { @@ -647,7 +646,7 @@ export default class NewEditProjectView extends Vue { title: `Error Sending to ${serviceName}`, text: errorMessage, }, - 5000, + 7000, ); } }