tpye number for offset arg

This commit is contained in:
Moriz Wahl 2022-03-11 12:44:32 +01:00
parent 6880fb628e
commit cda9ee196d

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 = 0, @Arg('offset', { nullable: true }) offset: number = 0,
@Ctx() context: any, @Ctx() context: any,
): Promise<TransactionLink[]> { ): Promise<TransactionLink[]> {
const userRepository = getCustomRepository(UserRepository) const userRepository = getCustomRepository(UserRepository)