Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix undefined variable.

Guo Xiang Tandd49be27d3ea
diff --git a/lib/s3_inventory.rb b/lib/s3_inventory.rb
index 0da4761b13d..35e81394796 100644
--- a/lib/s3_inventory.rb
+++ b/lib/s3_inventory.rb
@@ -84,7 +84,8 @@ class S3Inventory
if result.count >= 1
key = result[0]["key"]
- data = s3_helper.object(key).data
+ data = @s3_helper.object(key).data
+
upload_id = Upload.create!(
user_id: Discourse.system_user.id,
original_filename: "",