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