Skip to content

Commit

Permalink
refactor: make limit and offset optional in history db
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrdlt committed Sep 9, 2024
1 parent 049dcbb commit f7055a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/api/graph/graph.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,7 @@ describe('GraphController', () => {
expect(mockGraphService.getGraph).toHaveBeenCalledTimes(0);
expect(result.status).toBe(400);
});

it.todo('should calculate the graph data correctly');
});
});
2 changes: 0 additions & 2 deletions src/api/graph/graph.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ export class GraphService {
}

const history = await this.pairLiquidityInfoHistoryDb.getAll({
limit: 9999999,
offset: 0,
order: OrderQueryEnum.asc,
pairAddress,
tokenAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class PairLiquidityInfoHistoryDbService {
fromBlockTime,
toBlockTime,
}: {
limit: number;
offset: number;
limit?: number;
offset?: number;
order?: OrderQueryEnum;
pairAddress?: ContractAddress;
tokenAddress?: ContractAddress;
Expand Down

0 comments on commit f7055a4

Please sign in to comment.