Skip to content

Commit

Permalink
fix bug due to missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Apr 24, 2024
1 parent 531f451 commit 8e82c18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/services/ams/missing_instantiations_locator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def destroy_assets(subset_path)
asset_ids = xml_files.map { |f| "cpb-aacip-#{File.basename(f).sub('.xml', '')}" }

begin
AMS::AssetDestroyer.new(asset_ids: asset_ids, user_email: 'wgbh_admin@wgbh-mla.org').destroy
logger.info "Destroying #{asset_ids.size} Assets via the AssetDestroyer. See asset_destroyer.log"
ad = AMS::AssetDestroyer.new(asset_ids: asset_ids, user_email: 'wgbh_admin@wgbh-mla.org')
ad.destroy(ad.asset_ids)
rescue => e
logger.error "Error destroying Assets. See asset_destroyer.log (#{e.class} - #{e.message})"
end
Expand Down

0 comments on commit 8e82c18

Please sign in to comment.