From 520cb22350240cba780e216d0f8b779c7a4d277a Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 7 Feb 2022 11:38:46 +0100 Subject: [PATCH] Revert "Add firstTransaction boolean to Transaction." This reverts commit 8c6aafcedb80e6212fe80d04c60e9340a0a762f6. --- backend/src/graphql/model/Transaction.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/backend/src/graphql/model/Transaction.ts b/backend/src/graphql/model/Transaction.ts index e23334a8e..3aa3c429d 100644 --- a/backend/src/graphql/model/Transaction.ts +++ b/backend/src/graphql/model/Transaction.ts @@ -15,7 +15,6 @@ export class Transaction { this.balance = 0 this.totalBalance = 0 this.memo = '' - this.firstTransaction = false } @Field(() => String) @@ -27,6 +26,15 @@ export class Transaction { @Field(() => Number) totalBalance: number + @Field({ nullable: true }) + decayStart?: string + + @Field({ nullable: true }) + decayEnd?: string + + @Field({ nullable: true }) + decayDuration?: number + @Field(() => String) memo: string @@ -44,7 +52,4 @@ export class Transaction { @Field({ nullable: true }) decay?: Decay - - @Field(() => Boolean) - firstTransaction: boolean }