Fix typo in condition value.

This commit is contained in:
Vinoth Kannan 2019-05-07 17:09:08 +05:30
parent 71fb8a4195
commit f5a217be92
1 changed files with 1 additions and 1 deletions

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