From 4d8f4f9b0c64322977ad31689c17e5b64032047b Mon Sep 17 00:00:00 2001 From: myk bilokonsky Date: Sat, 15 Apr 2017 14:14:31 +0200 Subject: row_id => row.id --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 64d7b00..e24ad19 100644 --- a/index.js +++ b/index.js @@ -67,21 +67,19 @@ var boosted = (function() { function already(row) { const b = bucket(row); - return buckets.has(b) && buckets.get(b).has(row_id); + return buckets.has(b) && buckets.get(b).has(row.id); } function set(row) { const b = bucket(row); if (!buckets.has(b)) buckets.set(b, new Set()); - buckets.get(b).add(row_id); + buckets.get(b).add(row.id); } return { already: already, prune: prune, set: set }; })(); function boost(rows) { - console.log('Rows:'); - console.dir(rows); rows.filter(function(x) { return !boosted.already(x); }) .forEach(function(row) { M.post('/statuses/' + row.id + '/reblog', function(err, result) { -- cgit