DEV: Fix undefined variable.

DEV: Fix undefined variable.

Follow up to e8fafbc123170dd1f7d2a8adea4e7810585d3e76.

diff --git a/lib/s3_inventory.rb b/lib/s3_inventory.rb
index 0da4761..35e8139 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: "",

GitHub sha: dd49be27

2 Likes