fix: issue with current account not being present for some user

This commit is contained in:
Tejaswini Chile 2022-12-12 13:16:27 +05:30
parent b456cec6a6
commit 02148c5c64

View file

@ -4,8 +4,7 @@ class TextSearch
DEFAULT_STATUS = 'open'.freeze
def initialize(current_user, params)
@current_user = current_user
@current_account = current_user.account
@current_account = current_user.account || Current.account
@params = params
end