From 1f0886585e784ed25b52ce8b3f15bd09fabf9a9a Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 4 Mar 2022 12:34:04 +0100 Subject: [PATCH] decay duration now is an integer --- backend/src/graphql/model/Decay.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/graphql/model/Decay.ts b/backend/src/graphql/model/Decay.ts index 0c199f527..f1204e730 100644 --- a/backend/src/graphql/model/Decay.ts +++ b/backend/src/graphql/model/Decay.ts @@ -1,4 +1,4 @@ -import { ObjectType, Field } from 'type-graphql' +import { ObjectType, Field, Int } from 'type-graphql' import Decimal from 'decimal.js-light' @ObjectType() @@ -29,6 +29,6 @@ export class Decay { @Field(() => Date, { nullable: true }) end: Date | null - @Field(() => Number, { nullable: true }) + @Field(() => Int, { nullable: true }) duration: number | null }