Fix activation date reference and update localization for promo code toggle success message

- Changed the reference from `created_at` to `activated_at` in the promo activations handler to accurately reflect the activation date.
- Updated the localization files for both English and Russian to remove HTML tags from the promo code toggle success message, enhancing clarity.
This commit is contained in:
machka-pasla
2025-08-04 18:16:59 +03:00
parent c8831718ed
commit 74719669fb
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ async def get_promo_activations_by_code_id(session: AsyncSession, promo_code_id:
from db.models import PromoCodeActivation
stmt = (select(PromoCodeActivation)
.where(PromoCodeActivation.promo_code_id == promo_code_id)
.order_by(PromoCodeActivation.created_at.desc())
.order_by(PromoCodeActivation.activated_at.desc())
.limit(50)) # Limit to last 50 activations
result = await session.execute(stmt)
return result.scalars().all()