Skip to content

Commit

Permalink
A week usually has 7 days
Browse files Browse the repository at this point in the history
  • Loading branch information
brizental committed Jan 31, 2023
1 parent f1ca58a commit 1f100cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/message_subscription_expiring/isExpiring.js
Original file line number Diff line number Diff line change
@@ -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();

Expand Down

0 comments on commit 1f100cc

Please sign in to comment.