import { EventsHandler, IEventHandler } from '@nestjs/cqrs'; import { RecordErrorLog } from '../entities/error-log.event'; import { ErrorLogService } from '../../data/services/error-log.service'; @EventsHandler(RecordErrorLog) export class RecordErrorLogHandler implements IEventHandler { constructor(private dataservice: ErrorLogService) {} async handle(event: RecordErrorLog) { // TODO: Implement logic here } }