Skip to content

Commit

Permalink
Merge pull request #3209 from nicolasfranck/development
Browse files Browse the repository at this point in the history
pluck with ampersand returns not id
  • Loading branch information
briri authored Aug 30, 2022
2 parents dbbf88d + 04e2aca commit 5eff207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/policies/api/v1/plans_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def resolve
def plans_for_client
return [] unless @user.present?

ids = @user.plans.pluck(&:id)
ids += @user.org.plans.pluck(&:id) if @user.org.present?
ids = @user.plans.pluck(:id)
ids += @user.org.plans.pluck(:id) if @user.org.present?
ids.uniq
end

Expand Down

0 comments on commit 5eff207

Please sign in to comment.