lib/daemons/amazonaws.rb in uploader-0.2.8 vs lib/daemons/amazonaws.rb in uploader-1.0.0
- old
+ new
@@ -22,10 +22,10 @@
if $waiting < 120
$waiting += 2
sleep 2
else
$waiting = 0
- upload = Upload.pending_s3_migration.first
+ upload = Upload.pending_s3_migrations.first
if upload
$waiting = 120 - 2
ActiveRecord::Base.logger.info "[AmazonS3] Migrating upload ##{upload.id}\n"
upload.remote = upload.local
\ No newline at end of file