diff --git a/bot/handlers/user/payment.py b/bot/handlers/user/payment.py index fcb479d..050ace8 100644 --- a/bot/handlers/user/payment.py +++ b/bot/handlers/user/payment.py @@ -127,7 +127,7 @@ async def process_successful_payment(session: AsyncSession, bot: Bot, user_id, subscription_months, current_payment_db_id=payment_db_id, - skip_if_active_before_payment=True, + skip_if_active_before_payment=False, ) applied_referee_bonus_days_from_referral: Optional[int] = None if referral_bonus_info and referral_bonus_info.get( diff --git a/bot/services/crypto_pay_service.py b/bot/services/crypto_pay_service.py index cdf0d78..718f0c2 100644 --- a/bot/services/crypto_pay_service.py +++ b/bot/services/crypto_pay_service.py @@ -146,7 +146,7 @@ class CryptoPayService: user_id, months, current_payment_db_id=payment_db_id, - skip_if_active_before_payment=True, + skip_if_active_before_payment=False, ) await session.commit() except Exception as e: diff --git a/bot/services/stars_service.py b/bot/services/stars_service.py index a6327ee..eaf36cc 100644 --- a/bot/services/stars_service.py +++ b/bot/services/stars_service.py @@ -100,7 +100,7 @@ class StarsService: message.from_user.id, months, current_payment_db_id=payment_db_id, - skip_if_active_before_payment=True, + skip_if_active_before_payment=False, ) await session.commit() diff --git a/bot/services/tribute_service.py b/bot/services/tribute_service.py index 8019263..a7d4403 100644 --- a/bot/services/tribute_service.py +++ b/bot/services/tribute_service.py @@ -161,7 +161,7 @@ class TributeService: int(user_id), months, current_payment_db_id=payment_record.payment_id, - skip_if_active_before_payment=True, + skip_if_active_before_payment=False, ) await session.commit()