aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/import.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/import.rb b/app/models/import.rb
index cdda3d0dc..eb2428b2b 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -29,11 +29,11 @@ class Import < ActiveRecord::Base
end
def notify_parent
- parent.child_change(self)
+ parent.child_change
update(notified_parent_at: DateTime.now)
end
- def child_change(child)
+ def child_change
return if self.class.finished_statuses.include?(status)
update_status