Skip to content

Commit

Permalink
fix puffer point list.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zklink committed Jun 17, 2024
1 parent 69e4edd commit c84e31d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/puffer/points.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class PointsController {
let res: TokenPointsWithoutDecimalsDto;
try {
const data = this.puffPointsService.getPointsData();
const allPointsFilter = data.items.filter((p) => p.realPoints >= 0.001);
const allPointsFilter = data.items; //.filter((p) => p.realPoints >= 0.001);
res = {
errno: 0,
errmsg: "no error",
Expand Down Expand Up @@ -445,7 +445,7 @@ export class PointsController {
public async allPufferPoints(): Promise<TokenPointsDto> {
this.logger.log("allPufferPoints");
const data = this.puffPointsService.getPointsData();
const allPointsFilter = data.items.filter((p) => p.realPoints >= 0.001);
const allPointsFilter = data.items; //.filter((p) => p.realPoints >= 0.001);
const result = allPointsFilter.map((p) => {
return {
address: p.address,
Expand Down Expand Up @@ -476,7 +476,7 @@ export class PointsController {
): Promise<TokenPointsDto> {
this.logger.log("allPufferPoints");
const data = this.puffPointsService.getPointsData();
const allPointsFilter = data.items.filter((p) => p.realPoints >= 0.001);
const allPointsFilter = data.items; //.filter((p) => p.realPoints >= 0.001);
const { page = 1, limit = 100 } = pagingOptions;
const paging = PaginationUtil.paginate(allPointsFilter, page, limit);
const result = paging.items.map((p) => {
Expand Down Expand Up @@ -511,7 +511,7 @@ export class PointsController {
let res: TokenPointsWithoutDecimalsDto;
try {
const data = this.puffPointsService.getPointsData();
const allPointsFilter = data.items.filter((p) => p.realPoints >= 0.001);
const allPointsFilter = data.items; //.filter((p) => p.realPoints >= 0.001);
const { page = 1, limit = 100 } = pagingOptions;
const paging = PaginationUtil.paginate(allPointsFilter, page, limit);
res = {
Expand Down

0 comments on commit c84e31d

Please sign in to comment.