2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-21 19:11:18 +08:00

Fix typo in condition value.

This commit is contained in:
Vinoth Kannan 2019-05-07 17:09:08 +05:30
parent 71fb8a4195
commit f5a217be92

View file

@ -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!(