From 28bd35ca2a913fb4731d5549a10f7fd305894588 Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Wed, 16 Apr 2025 00:08:39 +0200 Subject: [PATCH] next try for disbursementJwt mapping --- backend/src/graphql/resolver/TransactionLinkResolver.ts | 9 ++++++++- frontend/src/pages/TransactionLink.vue | 8 ++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/backend/src/graphql/resolver/TransactionLinkResolver.ts b/backend/src/graphql/resolver/TransactionLinkResolver.ts index b608ac6da..7b255be45 100644 --- a/backend/src/graphql/resolver/TransactionLinkResolver.ts +++ b/backend/src/graphql/resolver/TransactionLinkResolver.ts @@ -191,7 +191,14 @@ export class TransactionLinkResolver { throw new LogError('Invalid JWT payload', payload) } if (payload.tokentype === DisbursementJwtPayloadType.REDEEM_ACTIVATION_TYPE) { - const disburseJwtPayload: DisbursementJwtPayloadType = payload + const disburseJwtPayload = new DisbursementJwtPayloadType( + payload.sendercommunityuuid as string, + payload.sendergradidoid as string, + payload.sendername as string, + payload.redeemcode as string, + payload.amount as string, + payload.memo as string, + ) logger.debug( 'TransactionLinkResolver.queryTransactionLink... disburseJwtPayload=', disburseJwtPayload, diff --git a/frontend/src/pages/TransactionLink.vue b/frontend/src/pages/TransactionLink.vue index 85b08210d..a1f54a0c7 100644 --- a/frontend/src/pages/TransactionLink.vue +++ b/frontend/src/pages/TransactionLink.vue @@ -102,6 +102,7 @@ const validLink = computed(() => { }) const itemType = computed(() => { + console.log('TransactionLink.itemType... referrer=', referrer.value, meta.referrer) if (linkData.value.deletedAt) { console.log('TransactionLink.itemType... TEXT_DELETED') return 'TEXT_DELETED' @@ -133,7 +134,7 @@ const itemType = computed(() => { }) const itemTypeExt = computed(() => { - console.log('TransactionLink.itemTypeExt... itemType=', itemType) + console.log('TransactionLink.itemTypeExt... itemType=', itemType.value) if (itemType.value.startsWith('TEXT')) { return 'TEXT' } @@ -141,7 +142,7 @@ const itemTypeExt = computed(() => { }) watch(itemType, (newItemType) => { - console.log('TransactionLink.watch... itemType=', itemType) + console.log('TransactionLink.watch... itemType=', itemType.value) updateRedeemedBoxText(newItemType) }) @@ -179,17 +180,20 @@ onMounted(() => { onResult(() => { console.log('TransactionLink.onResult... result=', result) + console.log('TransactionLink.onResult... referrer=', referrer.value, meta.referrer) if (!result || !result.value) return setTransactionLinkInformation() }) onError(() => { console.log('TransactionLink.onError... error=', error) + console.log('TransactionLink.onError... referrer=', referrer.value, meta.referrer) toastError(t('gdd_per_link.redeemlink-error')) }) function setTransactionLinkInformation() { console.log('TransactionLink.setTransactionLinkInformation... result=', result) + console.log('TransactionLink.setTransactionLinkInformation... referrer=', referrer.value, meta.referrer) const { queryTransactionLink } = result.value console.log( 'TransactionLink.setTransactionLinkInformation... queryTransactionLink=',