From 1a47d339a893521f85f9b99b9d1f9ff0e5ee3a39 Mon Sep 17 00:00:00 2001 From: "Isa S." Date: Thu, 21 Nov 2024 18:17:09 +0100 Subject: [PATCH] Cleaner way of converting days to seconds --- lib/tasks/mastodon.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 89f74aa33b..57ec11f864 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -362,7 +362,7 @@ namespace :mastodon do q.convert :int end - env['IP_RETENTION_PERIOD'] = (ip_retention_period_days * 86_400) + env['IP_RETENTION_PERIOD'] = ip_retention_period_days.days.to_i prompt.say "\n"