Files
goodgo-platform/apps/api/src/modules/subscriptions/domain/events/quota-exceeded.event.ts
Ho Ngoc Hai e927385ed5 feat(api): improve notifications, reviews, search, and subscriptions modules
- Add listing-sold event listener with spec for notifications
- Add review-deleted event listener with spec for reviews
- Improve search handlers with proper Typesense client injection
- Improve subscription handlers with ConfigService and quota tracking

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-09 09:43:39 +07:00

14 lines
368 B
TypeScript

import { type DomainEvent } from '@modules/shared';
export class QuotaExceededEvent implements DomainEvent {
readonly eventName = 'quota.exceeded';
readonly occurredAt = new Date();
constructor(
public readonly aggregateId: string, // userId
public readonly metric: string,
public readonly limit: number,
public readonly used: number,
) {}
}