From fae9d9100466838e7e72a3b61f7427fe50d0a05a Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 10 Mar 2022 16:00:15 +0100 Subject: [PATCH] add comment to explain why set to null in constructor --- backend/src/graphql/model/TransactionLink.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/graphql/model/TransactionLink.ts b/backend/src/graphql/model/TransactionLink.ts index fec02b9fd..a87d4a68a 100644 --- a/backend/src/graphql/model/TransactionLink.ts +++ b/backend/src/graphql/model/TransactionLink.ts @@ -15,6 +15,7 @@ export class TransactionLink { this.createdAt = transactionLink.createdAt this.validUntil = transactionLink.validUntil this.showEmail = transactionLink.showEmail + // Type 'Date | null | undefined' is not assignable to type 'Date | null'. this.deletedAt = null // transactionLink.deletedAt this.redeemedAt = null // transactionLink.redeemedAt this.redeemedBy = null // transactionLink.redeemedBy