api: allow search[*_id] params to accept lists of ids in more places.
This commit is contained in:
@@ -26,11 +26,11 @@ class ArtistVersion < ActiveRecord::Base
|
||||
end
|
||||
|
||||
if params[:updater_id].present?
|
||||
q = q.for_user(params[:updater_id].to_i)
|
||||
q = q.where(updater_id: params[:updater_id].split(",").map(&:to_i))
|
||||
end
|
||||
|
||||
if params[:artist_id].present?
|
||||
q = q.where("artist_id = ?", params[:artist_id].to_i)
|
||||
q = q.where(artist_id: params[:artist_id].split(",").map(&:to_i))
|
||||
end
|
||||
|
||||
params[:order] ||= params.delete(:sort)
|
||||
|
||||
Reference in New Issue
Block a user