|
|
@ -341,17 +341,15 @@ export default class ContactsView extends Vue { |
|
|
|
}; |
|
|
|
|
|
|
|
try { |
|
|
|
const { headers, identity } = await this.getHeadersAndIdentity( |
|
|
|
this.activeDid, |
|
|
|
); |
|
|
|
const { headers } = await this.getHeadersAndIdentity(this.activeDid); |
|
|
|
const givenByUrl = |
|
|
|
this.apiServer + |
|
|
|
"/api/v2/report/gives?agentDid=" + |
|
|
|
encodeURIComponent(identity.did); |
|
|
|
encodeURIComponent(this.activeDid); |
|
|
|
const givenToUrl = |
|
|
|
this.apiServer + |
|
|
|
"/api/v2/report/gives?recipientDid=" + |
|
|
|
encodeURIComponent(identity.did); |
|
|
|
encodeURIComponent(this.activeDid); |
|
|
|
|
|
|
|
const [givenByMeResp, givenToMeResp] = await Promise.all([ |
|
|
|
this.axios.get(givenByUrl, { headers }), |
|
|
|