From 6e2c8eeb649481afc349e6eb7741bcc82909c3c4 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Wed, 25 Sep 2024 17:48:54 +0200 Subject: [PATCH] fix hourglass count --- website/server/libs/payments/subscriptions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/server/libs/payments/subscriptions.js b/website/server/libs/payments/subscriptions.js index afbf2b9226..bb3e02f964 100644 --- a/website/server/libs/payments/subscriptions.js +++ b/website/server/libs/payments/subscriptions.js @@ -260,9 +260,9 @@ async function createSubscription (data) { recipient.purchased.plan.hourglassPromoReceived = new Date(); if (months !== block.months) { // user is upgrading their sub. Already got one hourglass when subscribing - await plan.updateHourglasses(recipient._id, 11, '12_month_subscription'); - } else { await plan.updateHourglasses(recipient._id, 12, '12_month_subscription'); + } else { + await plan.updateHourglasses(recipient._id, 13, '12_month_subscription'); } } else if (!data.gift || (data.gift && isNewSubscription)) { await plan.updateHourglasses(recipient._id, 1, 'subscribed');