Removed hard limit on PotentialFriendshipTracker.get

the default is now set at: 10
DEFAULT_ACCOUNTS_LIMIT=40, we dont want 40
This commit is contained in:
mgabdev 2019-07-22 00:13:44 -04:00
parent 6ca001bc67
commit 606a6c7f12

View File

@ -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