From 6ca001bc6752dc2e14c44758a939ac00177f0f71 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 22 Jul 2019 00:11:00 -0400 Subject: [PATCH] Updated PotentialFriendshipTracker max to 10 from 20 --- app/lib/potential_friendship_tracker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/potential_friendship_tracker.rb b/app/lib/potential_friendship_tracker.rb index 188aa4a2..3e943d71 100644 --- a/app/lib/potential_friendship_tracker.rb +++ b/app/lib/potential_friendship_tracker.rb @@ -28,7 +28,7 @@ class PotentialFriendshipTracker redis.zrem("interactions:#{account_id}", target_account_id) end - def get(account_id, limit: 20, offset: 0) + def get(account_id, limit: 10, offset: 0) account_ids = redis.zrevrange("interactions:#{account_id}", offset, limit) return [] if account_ids.empty? Account.searchable.where(id: account_ids)