Skip to content

Commit

Permalink
Ticket CV2-5067: Another minor fix for the data export
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Sep 3, 2024
1 parent 0bd7c1e commit c09ccda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/list_export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def initialize(type, query, team_id)
@parsed_query = JSON.parse(@query).with_indifferent_access
@team_id = team_id
@team = Team.find(team_id)
@feed = Feed.where(id: @parsed_query['feed_id'], team_id: @team_id).last if type == :feed
@feed = Feed.find(@parsed_query['feed_id']) if type == :feed && @team.is_part_of_feed?(Feed.find(@parsed_query['feed_id']))
raise "Invalid export type '#{type}'. Should be one of: #{TYPES}" unless TYPES.include?(type)
end

Expand Down

0 comments on commit c09ccda

Please sign in to comment.