mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
FIX: uploads:fix_missing_s3
rake task used wrong SHA1 (#12495)
This commit is contained in:
parent
c03c85e661
commit
acc73f2989
@ -1023,7 +1023,7 @@ def fix_missing_s3
|
||||
fix_error = nil
|
||||
Upload.transaction do
|
||||
begin
|
||||
upload.update!(sha1: SecureRandom.hex)
|
||||
upload.update_column(:sha1, SecureRandom.hex)
|
||||
fixed_upload = UploadCreator.new(tempfile, "temp.#{upload.extension}").create_for(Discourse.system_user.id)
|
||||
rescue => fix_error
|
||||
# invalid extension is the most common issue
|
||||
|
Loading…
Reference in New Issue
Block a user