Skip to content

Commit

Permalink
Merge pull request #130 from csgofloat/revert-127-fix/enforce-d-corre…
Browse files Browse the repository at this point in the history
…ctness

Revert "Enforces D Param Correctness in Lookup"
  • Loading branch information
Step7750 authored Apr 17, 2023
2 parents 62a2cff + c879b5b commit 3db0861
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ class Postgres {

async _getItemData(links) {
const aValues = links.map(e => utils.unsigned64ToSigned(e.getParams().a));
const dValues = links.map(e => utils.unsigned64ToSigned(e.getParams().d));

const result = await this.pool.query(`
SELECT *,
Expand All @@ -327,7 +326,7 @@ class Postgres {
ORDER BY J.paintwear DESC
LIMIT 1000) as b) AS high_rank
FROM items S
WHERE a = ANY($1::bigint[]) AND d = ANY($2::bigint[])`, [aValues, dValues]);
WHERE a= ANY($1::bigint[])`, [aValues]);

return result.rows.map((item) => {
delete item.updated;
Expand Down

0 comments on commit 3db0861

Please sign in to comment.