Merge branch '15028-cwl-v1.1' refs #15028
[arvados.git] / services / api / lib / audit_logs.rb
index e97f65a97397c86474fa69d190e92cd1fabfe8ce..886c8873891c044270313e3563c73e4fe950c5cb 100644 (file)
@@ -44,7 +44,7 @@ module AuditLogs
   end
 
   def self.tidy_in_background
-    max_age = Rails.configuration.AuditLogs.MaxAge
+    max_age = Rails.configuration.AuditLogs.MaxAge.to_i
     max_batch = Rails.configuration.AuditLogs.MaxDeleteBatch
     return if max_age <= 0 || max_batch <= 0