mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
Fix typo in condition value.
This commit is contained in:
parent
71fb8a4195
commit
f5a217be92
|
@ -82,7 +82,7 @@ class S3Inventory
|
|||
upload_id = nil
|
||||
result = connection.exec("SELECT * FROM #{table_name} WHERE key LIKE '%original/%/#{sha1}%'")
|
||||
|
||||
if result.count >= 0
|
||||
if result.count >= 1
|
||||
key = result[0]["key"]
|
||||
data = s3_helper.object(key).data
|
||||
upload_id = Upload.create!(
|
||||
|
|
Loading…
Reference in New Issue
Block a user