mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Prevent nil input to turn into 0
This commit is contained in:
@@ -8,7 +8,7 @@ class TruncateData
|
||||
end
|
||||
|
||||
def initialize(months_to_keep = nil)
|
||||
@date = (months_to_keep || 3).months.ago
|
||||
@date = (months_to_keep || 3).to_i.months.ago
|
||||
end
|
||||
|
||||
def call
|
||||
|
||||
Reference in New Issue
Block a user