Skip to content

Commit

Permalink
fixup! Add ShipmentTracking Job and Call when updated
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushswain committed Jun 13, 2022
1 parent 2b6591c commit 4644cca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/decorators/models/solidus_bolt/shipment_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
module SolidusBolt
module ShipmentDecorator
def self.prepended(base)
base.class_eval do
before_save :update_bolt_tracking_info
end
base.before_save :update_bolt_tracking_info
end

def update_bolt_tracking_info
return unless tracking_was.nil?
return if tracking_was.present?
return unless tracking_changed?

payment = order&.payments&.completed&.last
Expand Down

0 comments on commit 4644cca

Please sign in to comment.