lib/finapps/rest/operators.rb in finapps-5.0.47 vs lib/finapps/rest/operators.rb in finapps-5.1.0

- old
+ new

@@ -62,17 +62,17 @@ filter.merge!(role_query(params[:role])) if params[:role] filter end def search_query(term) - {"last_name": term} + {last_name: term} end def role_query(role) if role.is_a?(Array) - {"role": {"$in": role.map(&:to_i)}} + {role: {"$in": role.map(&:to_i)}} else - {"role": role.to_i} + {role: role.to_i} end end end end end