correct type of validUntil for createRedeemJwt

This commit is contained in:
clauspeterhuebner 2025-04-24 18:01:59 +02:00
parent 5edf05c61d
commit a2a026006a

View File

@ -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<string> {
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()