From 8b2af1ef56aed198465b2ca062771ffb9af483d4 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Mon, 5 Dec 2022 15:38:30 +0100 Subject: [PATCH] remove log --- website/server/models/subscriptionPlan.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/website/server/models/subscriptionPlan.js b/website/server/models/subscriptionPlan.js index a4f6b7ec81..21e4999f99 100644 --- a/website/server/models/subscriptionPlan.js +++ b/website/server/models/subscriptionPlan.js @@ -55,15 +55,12 @@ schema.methods.incrementPerkCounterAndReward = async function incrementPerkCount // if perkMonthCount wasn't used before, initialize it. if (this.perkMonthCount == undefined && adding == 1) { this.perkMonthCount = (this.consecutive.count-1) % SUBSCRIPTION_BASIC_BLOCK_LENGTH; - console.log(`initializing perk count with ${this.perkMonthCount}`); } else { this.perkMonthCount += adding; } - console.log(this.perkMonthCount); const perks = Math.floor(this.perkMonthCount / 3); if (perks > 0) { - console.log(`giving benefits for ${perks} from ${this.perkMonthCount}, ${adding}`); this.consecutive.gemCapExtra += 5 * perks; // 5 extra Gems every 3 months // cap it at 50 (hard 25 limit + extra 25) if (this.consecutive.gemCapExtra > 25) this.consecutive.gemCapExtra = 25;