Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zklink committed May 20, 2024
1 parent fefa4c6 commit 195d05c
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions src/repositories/blockAddressPointOfLp.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,14 @@ export class BlockAddressPointOfLpRepository extends BaseRepository<BlockAddress
GROUP BY "address"
) AS a ORDER BY "totalPoints" DESC LIMIT ${limit} OFFSET ${page * limit}`;
const result = await transactionManager.query(query);
const existsAddresses: Buffer[] = [
Buffer.from(
"0xacb35c2d11fea8849cd9f5ff6fbc56bb5296641b".substring(2),
"hex",
),
Buffer.from(
"0x047597323b957cd25b595377cb0d694f496b0fd8".substring(2),
"hex",
),
Buffer.from(
"0x99ce1b33765d0ab9f9d38905685b7d0caba89b60".substring(2),
"hex",
),
const existsAddresses: String[] = [
"0xacb35c2d11fea8849cd9f5ff6fbc56bb5296641b",
"0x047597323b957cd25b595377cb0d694f496b0fd8",
"0x99ce1b33765d0ab9f9d38905685b7d0caba89b60",
];
return result.map((row: any) => {
if (!existsAddresses.includes(row.address)) {
const tmpAddress = "0x" + row.address.toString("hex");
if (!existsAddresses.includes(tmpAddress)) {
return row.address;
}
});
Expand Down

0 comments on commit 195d05c

Please sign in to comment.