From a2a026006a2042986037424011335cff2be8cf21 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Thu, 24 Apr 2025 18:01:59 +0200
Subject: [PATCH] correct type of validUntil for createRedeemJwt
---
backend/src/graphql/resolver/TransactionLinkResolver.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/src/graphql/resolver/TransactionLinkResolver.ts b/backend/src/graphql/resolver/TransactionLinkResolver.ts
index f57eca2dd..17244a587 100644
--- a/backend/src/graphql/resolver/TransactionLinkResolver.ts
+++ b/backend/src/graphql/resolver/TransactionLinkResolver.ts
@@ -405,7 +405,7 @@ export class TransactionLinkResolver {
@Arg('memo') memo: string,
@Arg('firstName', { nullable: true }) firstName?: string,
@Arg('alias', { nullable: true }) alias?: string,
- @Arg('validUntil', { nullable: true }) validUntil?: Date,
+ @Arg('validUntil', { nullable: true }) validUntil?: string,
): Promise {
logger.debug('TransactionLinkResolver.queryRedeemJwt... args=', {
gradidoID,
@@ -427,7 +427,7 @@ export class TransactionLinkResolver {
code,
amount,
memo,
- validUntil?.toISOString() ?? '',
+ validUntil,
)
// TODO:encode/sign the jwt normally with the private key of the sender/home community, but interims with uuid
const homeCom = await getHomeCommunity()