tpye number for offset arg

This commit is contained in:
Moriz Wahl 2022-03-11 12:44:55 +01:00
parent cda9ee196d
commit fed268afb6

View File

@ -126,7 +126,7 @@ export class TransactionLinkResolver {
@Authorized([RIGHTS.LIST_TRANSACTION_LINKS]) @Authorized([RIGHTS.LIST_TRANSACTION_LINKS])
@Query(() => [TransactionLink]) @Query(() => [TransactionLink])
async listTransactionLinks( async listTransactionLinks(
@Arg('offset', { nullable: true }) offset: number = 0, @Arg('offset', { nullable: true }) offset = 0,
@Ctx() context: any, @Ctx() context: any,
): Promise<TransactionLink[]> { ): Promise<TransactionLink[]> {
const userRepository = getCustomRepository(UserRepository) const userRepository = getCustomRepository(UserRepository)