Skip to content

Commit

Permalink
paperclip file destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshumishra31 committed Jun 12, 2018
1 parent 5439096 commit faf8b36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/notify_failed_stocks_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def initialize(stock_updater_id)
update_stocks
stock_updater.update_column(:job_executed, true)
Spree::StockUpdaterMailer.update_admin(@errors, stock_updater).deliver_now
stock_updater.destroy if stock_updater.job_executed?
end

private
Expand Down

0 comments on commit faf8b36

Please sign in to comment.