From 606a6c7f12c5a6bc62559766f03e17e0ccbeb201 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 22 Jul 2019 00:13:44 -0400 Subject: [PATCH] Removed hard limit on PotentialFriendshipTracker.get the default is now set at: 10 DEFAULT_ACCOUNTS_LIMIT=40, we dont want 40 --- app/controllers/api/v1/suggestions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/suggestions_controller.rb b/app/controllers/api/v1/suggestions_controller.rb index 9da2b60a..19946bb2 100644 --- a/app/controllers/api/v1/suggestions_controller.rb +++ b/app/controllers/api/v1/suggestions_controller.rb @@ -21,6 +21,6 @@ class Api::V1::SuggestionsController < Api::BaseController private def set_accounts - @accounts = PotentialFriendshipTracker.get(current_account.id, limit: limit_param(DEFAULT_ACCOUNTS_LIMIT)) + @accounts = PotentialFriendshipTracker.get(current_account.id) end end