Don't forget to lycansubscribe 🐺
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fixed finishing of import

Kuba Suder 8b207621 29ff2cb9

+3 -1
+2 -1
app/importer.rb
··· 37 37 cursor = response['cursor'] 38 38 39 39 count += records.length 40 - @report&.update(importer: { imported_likes: count, oldest_date: Time.parse(records.last['value']['createdAt']) }) 40 + @report&.update(importer: { imported_likes: count }) 41 + @report&.update(importer: { oldest_date: Time.parse(records.last['value']['createdAt']) }) unless records.empty? 41 42 42 43 process_likes(records) 43 44 params[:cursor] = cursor
+1
lib/tasks/import.rake
··· 57 57 } 58 58 59 59 importer.run_import(ENV['UNTIL']) 60 + puts "\n\n\n\n\n" 60 61 end 61 62 62 63 task :process_posts do