From 8c6aafcedb80e6212fe80d04c60e9340a0a762f6 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:32:09 +0100 Subject: [PATCH] Add firstTransaction boolean to Transaction. --- backend/src/graphql/model/Transaction.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/backend/src/graphql/model/Transaction.ts b/backend/src/graphql/model/Transaction.ts index 3aa3c429d..e23334a8e 100644 --- a/backend/src/graphql/model/Transaction.ts +++ b/backend/src/graphql/model/Transaction.ts @@ -15,6 +15,7 @@ export class Transaction { this.balance = 0 this.totalBalance = 0 this.memo = '' + this.firstTransaction = false } @Field(() => String) @@ -26,15 +27,6 @@ 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 @@ -52,4 +44,7 @@ export class Transaction { @Field({ nullable: true }) decay?: Decay + + @Field(() => Boolean) + firstTransaction: boolean }