fix(lint): line lengths and so on

This commit is contained in:
SabreCat
2022-11-30 15:27:53 -06:00
committed by Phillip Thelen
parent 82a1d6ff0e
commit e81a052f66
2 changed files with 3 additions and 4 deletions

View File

@@ -63,9 +63,6 @@ const CLEAR_BUFFS = {
};
async function grantEndOfTheMonthPerks (user, now) {
// multi-month subscriptions are for multiples of 3 months
const SUBSCRIPTION_BASIC_BLOCK_LENGTH = 3;
const { plan, elapsedMonths } = getPlanContext(user, now);
if (elapsedMonths > 0) {
@@ -115,6 +112,7 @@ async function grantEndOfTheMonthPerks (user, now) {
// (subtract 1 because we should have run this when the payment was taken last month)
plan.consecutive.offset = planMonthsLength - 1;
}
// eslint-disable-next-line no-await-in-loop
await plan.incrementPerkCounterAndReward(user._id, planMonthsLength);
}
}