Skip to content

Commit

Permalink
changed return type from any to MexPair[], MexFarm[] for getMexPairs …
Browse files Browse the repository at this point in the history
…and getMexFarms functions
  • Loading branch information
ramonalobont committed Dec 28, 2023
1 parent 179cd9c commit a34982a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/mex/mex.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class MexController {
@Query('from', new DefaultValuePipe(0), ParseIntPipe) from: number,
@Query("size", new DefaultValuePipe(25), ParseIntPipe) size: number,
@Query('exchange', new ParseEnumPipe(MexPairExchange)) exchange?: MexPairExchange,
): Promise<any> {
): Promise<MexPair[]> {
const filter = new MexPairsFilter({ exchange });
return await this.mexPairsService.getMexPairs(from, size, filter);
}
Expand Down Expand Up @@ -114,7 +114,7 @@ export class MexController {
async getMexFarms(
@Query('from', new DefaultValuePipe(0), ParseIntPipe) from: number,
@Query("size", new DefaultValuePipe(25), ParseIntPipe) size: number
): Promise<any> {
): Promise<MexFarm[]> {
return await this.mexFarmsService.getMexFarms(new QueryPagination({ from, size }));
}

Expand Down

0 comments on commit a34982a

Please sign in to comment.