Skip to content

Commit

Permalink
Fix rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
saipraveen18 committed Feb 16, 2022
1 parent 707f821 commit e1e0044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/subscriber_inventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.select_filtered_plan_ids(filters = {})
if filters.has_key?(:year)
filter_criteria[:year] = filters[:year]
end
return nil if filter_criteria.empty?
return [] if filter_criteria.empty?

Rails.cache.fetch("plan-ids-#{filter_criteria[:hios_plan_id]}-#{filter_criteria[:year]}", expires_in: 24.hour) do
plans = Plan.where(filter_criteria)
Expand Down

0 comments on commit e1e0044

Please sign in to comment.