FIX: `fix_missing_s3` rake task could fail due to missing upload (#13479)
This commit is contained in:
parent
4a4cceca4d
commit
820068ddaf
|
@ -1006,7 +1006,8 @@ def fix_missing_s3
|
|||
verification_status: Upload.verification_statuses[:invalid_etag]
|
||||
).pluck(:id)
|
||||
ids.each do |id|
|
||||
upload = Upload.find(id)
|
||||
upload = Upload.find_by(id: id)
|
||||
next if !upload
|
||||
|
||||
tempfile = nil
|
||||
|
||||
|
|
Loading…
Reference in New Issue