From 7febdc276d2292189e8cf762c327bfd8ae3f9567 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 30 Sep 2024 18:33:15 -0600 Subject: [PATCH] change give provider to a single value --- src/libs/endorserServer.ts | 4 ++-- src/views/QuickActionBvcEndView.vue | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 25818b2cc..f6887383f 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -142,7 +142,7 @@ export interface GiveVerifiableCredential extends GenericVerifiableCredential { identifier?: string; image?: string; object?: { amountOfThisGood: number; unitCode: string }; - provider?: Array; // typically @type & identifier + provider?: GenericVerifiableCredential; // typically @type & identifier recipient?: { identifier: string }; } @@ -654,7 +654,7 @@ export function hydrateGive( vcClaim.image = imageUrl || undefined; vcClaim.provider = providerPlanHandleId - ? [{ "@type": "PlanAction", identifier: providerPlanHandleId }] + ? { "@type": "PlanAction", identifier: providerPlanHandleId } : undefined; return vcClaim; diff --git a/src/views/QuickActionBvcEndView.vue b/src/views/QuickActionBvcEndView.vue index 6948fbea5..94154c7d9 100644 --- a/src/views/QuickActionBvcEndView.vue +++ b/src/views/QuickActionBvcEndView.vue @@ -362,8 +362,7 @@ export default class QuickActionBvcBeginView extends Vue { query: { description: this.description, destinationPathAfter: "/", - providerProjectId: - "https://endorser.ch/entity/01J8XW5SE5NJZ34TQCC10FC18B", //BVC_MEETUPS_PROJECT_CLAIM_ID, + providerProjectId: BVC_MEETUPS_PROJECT_CLAIM_ID, recipientDid: this.activeDid, }, });