From 1f100ccb93c25204f67b5c43fc63529255319c19 Mon Sep 17 00:00:00 2001 From: Beatriz Rizental Date: Tue, 31 Jan 2023 14:24:27 +0100 Subject: [PATCH] A week usually has 7 days --- addons/message_subscription_expiring/isExpiring.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/message_subscription_expiring/isExpiring.js b/addons/message_subscription_expiring/isExpiring.js index ac057dd3317..cd3c94306dd 100644 --- a/addons/message_subscription_expiring/isExpiring.js +++ b/addons/message_subscription_expiring/isExpiring.js @@ -1,6 +1,6 @@ (function(api, condition) { // Show message only if within 1 week of expiring. - const weekBeforeExpireMSecs = api.subscriptionData.expiresOn - 1000 * 60 * 60 * 24; + const weekBeforeExpireMSecs = api.subscriptionData.expiresOn - 1000 * 60 * 60 * 24 * 7; const subscriptionExpiry = api.subscriptionData.expiresOn; const now = Date.now();