Skip to content

Commit

Permalink
....
Browse files Browse the repository at this point in the history
  • Loading branch information
brizental committed Jan 31, 2023
1 parent b4b9d9e commit f1ca58a
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions addons/message_subscription_expiring/isExpiring.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
});

0 comments on commit f1ca58a

Please sign in to comment.