Skip to content

Commit

Permalink
bugfix: to number
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Nov 6, 2024
1 parent 7f45236 commit 78d359b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apollo/src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export class AppController {

@Get('quest/after/:timestamp/times/:times')
async questUsedAfterAnd3Times(
@Param('timestamp') timestamp: number,
@Param('times') times: number,
@Param('timestamp') timestamp: string,
@Param('times') times: string,
@Query('address') address: string) {
const where = {
sender: address.toLowerCase(),
startTime: { gt: timestamp },
startTime: { gt: Number(timestamp) },
};
return await this.appService.questUsedHelix(where, times);
return await this.appService.questUsedHelix(where, Number(times));
}
}

0 comments on commit 78d359b

Please sign in to comment.