Skip to content
Snippets Groups Projects
Commit 17b51512 authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

fix builder metadata

parent b5aebedc
No related branches found
No related tags found
No related merge requests found
......@@ -32,11 +32,10 @@ class LearningObjectBuilder
id_dspace: args['id_dspace'],
type: args['type'],
bitstreams: args['bitstreams'],
metadata: args['metadata'],
last_modified: args['last_modified']
last_modified: args['last_modified'],
metadata: JSON.parse(args['metadata'])
)
end
lo.likes = args.key?('in_Likes') ? args['in_Likes'].size : 0
lo.views = args.key?('in_Views') ? args['in_Views'].size : 0
end
......
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