From 14ff47f6f1e8642442212325e85a0dba55b573a7 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 8 Nov 2018 16:42:12 +0800 Subject: [PATCH] Fix typo. --- lib/tasks/uploads.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 8c7db8932be..043f333a1a9 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -240,7 +240,7 @@ def migrate_to_s3 image_uploads = file_uploads.where("lower(extension) NOT IN (?)", FileHelper.supported_images.to_a) [image_uploads, file_uploads].each do |uploads| - upload.find_in_batches(batch_size: 100) do |batch| + uploads.find_in_batches(batch_size: 100) do |batch| batch.each do |upload| now = Process.clock_gettime(Process::CLOCK_MONOTONIC) # remove invalid uploads