diff --git a/addons/message_subscription_expiring/isExpiring.js b/addons/message_subscription_expiring/isExpiring.js index eb672ae7034..ac057dd3317 100644 --- a/addons/message_subscription_expiring/isExpiring.js +++ b/addons/message_subscription_expiring/isExpiring.js @@ -7,20 +7,9 @@ if (now < subscriptionExpiry && now >= weekBeforeExpireMSecs) { api.addon.date = weekBeforeExpireMSecs; condition.enable(); - - return { - enabled: true, - subscriptionExpiry, - weekBeforeExpireMSecs, - now, - }; + } else { + condition.disable(); } - condition.disable(); - return { - enabled: false, - subscriptionExpiry, - weekBeforeExpireMSecs, - now, - };; + return [weekBeforeExpireMSecs, subscriptionExpiry, now]; });