fix createdAt is now

This commit is contained in:
Moriz Wahl 2022-03-09 14:59:21 +01:00
parent 1a715f8b71
commit dee6fd9d0a

View File

@ -24,7 +24,8 @@ export const transactionLinkCode = (date: Date): string => {
const transactionLinkExpireDate = (date: Date): Date => {
// valid for 14 days
return new Date(date.setDate(date.getDate() + 14))
const validUntil = new Date(date)
return new Date(validUntil.setDate(date.getDate() + 14))
}
@Resolver()