DEV: Get only matching records to backfill etags

DEV: Get only matching records to backfill etags

diff --git a/lib/s3_inventory.rb b/lib/s3_inventory.rb
index ee7dab3..05096f0 100644
--- a/lib/s3_inventory.rb
+++ b/lib/s3_inventory.rb
@@ -47,7 +47,7 @@ class S3Inventory
         end
 
         if backfill_etags
-          uploads = model.where(etag: nil).joins("LEFT JOIN #{table_name} ON #{model.table_name}.url ILIKE '%' || #{table_name}.key")
+          uploads = model.where(etag: nil).joins("INNER JOIN #{table_name} ON #{model.table_name}.url ILIKE '%' || #{table_name}.key")
           uploads.select(:id, :"#{table_name}.etag").find_each do |upload|
             model.where(id: upload.id).update_all(etag: upload.etag)
           end

GitHub sha: a9a88557