We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fde3c09 + 351dbb5 commit 6c49b27Copy full SHA for 6c49b27
lib/postgres.js
@@ -302,6 +302,7 @@ class Postgres {
302
303
async _getItemData(links) {
304
const aValues = links.map(e => utils.unsigned64ToSigned(e.getParams().a));
305
+ const dValues = links.map(e => utils.unsigned64ToSigned(e.getParams().d));
306
307
const result = await this.pool.query(`
308
SELECT *,
@@ -326,7 +327,7 @@ class Postgres {
326
327
ORDER BY J.paintwear DESC
328
LIMIT 1000) as b) AS high_rank
329
FROM items S
- WHERE a= ANY($1::bigint[])`, [aValues]);
330
+ WHERE a = ANY($1::bigint[]) AND d = ANY($2::bigint[])`, [aValues, dValues]);
331
332
return result.rows.map((item) => {
333
delete item.updated;
0 commit comments