pos-be/src/modules/configuration/log/domain/handlers/error-log.handler.ts

13 lines
442 B
TypeScript

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<RecordErrorLog> {
constructor(private dataservice: ErrorLogService) {}
async handle(event: RecordErrorLog) {
// TODO: Implement logic here
}
}