Skip to content
Snippets Groups Projects
Commit 9d5f28ae authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Fix typo: Wrong Class names on OrientDB queries

parent fcf7c2a7
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class LearningObjectsController < ApplicationController
def show
@object = repository.for(:learning_object).get_by_dspaceid params[:id]
unless @object.nil?
@like_counts = repository.for(:edge).get_in_edges_count "ELike", @object.first["@rid"]
@like_counts = repository.for(:edge).get_in_edges_count "Likes", @object.first["@rid"]
end
end
......
......@@ -8,7 +8,7 @@ module OrientDb
end
def get_by_dspaceid(id_dspace)
OrientDb::Client.instance.query "SELECT FROM Object WHERE id_dspace=#{id_dspace}"
OrientDb::Client.instance.query "SELECT FROM LearningObject WHERE id_dspace=#{id_dspace}"
end
def save(object)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment