lib/meducation_sdk/services/recommender.rb in meducation_sdk-1.6.12 vs lib/meducation_sdk/services/recommender.rb in meducation_sdk-1.6.13
- old
+ new
@@ -95,12 +95,12 @@
@options = options
@limit = options[:limit] || 5
end
def recommend
- results = Loquor.get("items/recommendations_for_user", user_id: @user.id)
+ results = Loquor.get("/items/recommendations_for_user?user_id=#{@user.id}", user_id: @user.id)
results.map do |result|
- sdk_class_for(result[:type]).new(result)
+ sdk_class_for(result["type"]).new(result)
end
end
end
end
end