Merge pull request #2517 from BEDOLAGA-DEV/dev

Update subscription.py
This commit is contained in:
Egor
2026-02-03 04:14:40 +03:00
committed by GitHub

View File

@@ -258,6 +258,10 @@ async def replace_subscription(
await db.commit()
await db.refresh(subscription)
# Очищаем старые записи об отправленных уведомлениях при замене подписки
# (аналогично extend_subscription), чтобы новые уведомления отправлялись корректно
await clear_notifications(db, subscription.id)
if update_server_counters:
try:
from app.database.crud.server_squad import (