From 489ab233b9d144d9bbc9e5d369e567ae2483b945 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 11 Mar 2022 13:59:33 +0100 Subject: [PATCH] define type of arg offset --- backend/src/graphql/resolver/TransactionLinkResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/graphql/resolver/TransactionLinkResolver.ts b/backend/src/graphql/resolver/TransactionLinkResolver.ts index 71e21eae3..09588b0c8 100644 --- a/backend/src/graphql/resolver/TransactionLinkResolver.ts +++ b/backend/src/graphql/resolver/TransactionLinkResolver.ts @@ -109,7 +109,7 @@ export class TransactionLinkResolver { @Authorized([RIGHTS.LIST_TRANSACTION_LINKS]) @Query(() => [TransactionLink]) async listTransactionLinks( - @Arg('offset', { nullable: true }) offset = 0, + @Arg('offset', { nullable: true }) offset: number = 0, @Ctx() context: any, ): Promise { const userRepository = getCustomRepository(UserRepository)