Skip to content

Commit 3db0861

Browse files
authored
Merge pull request #130 from csgofloat/revert-127-fix/enforce-d-correctness
Revert "Enforces D Param Correctness in Lookup"
2 parents 62a2cff + c879b5b commit 3db0861

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/postgres.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ class Postgres {
302302

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

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

332331
return result.rows.map((item) => {
333332
delete item.updated;

0 commit comments

Comments
 (0)