Unhardcode class name

This commit is contained in:
Pau Pérez Fabregat
2020-09-08 12:26:21 +02:00
committed by GitHub
parent 97ae4def98
commit ffbb0d26a4

View File

@@ -8,7 +8,7 @@ class RemoveTransientData
end
def call
Rails.logger.info("RemoveTransientData: processing")
Rails.logger.info("#{self.class.name}: processing")
Spree::StateChange.delete_all("created_at < '#{retention_period}'")
Spree::LogEntry.delete_all("created_at < '#{retention_period}'")