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

Fix bug: Scrammbled parameters

parent 0f906594
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ namespace :thumbnail do
begin
# Get items from dspace (from offset to offset+limit)
items = learning_object_repository.all_from_offset_to_limit(limit,offset)
items = learning_object_repository.all_from_offset_to_limit(offset,limit)
rescue
# Sleeps for a while to wait database's recovery
sleep(30.seconds)
......@@ -29,7 +29,8 @@ namespace :thumbnail do
offset = offset + limit
items.each do |item|
ThumbnailGeneratorWorker.perform_async(item.id)
puts item.name
# ThumbnailGeneratorWorker.perform_async(item.id)
end
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