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

11 lines
332 B
TypeScript

import { EventsHandler, IEventHandler } from "@nestjs/cqrs";
import { RecordErrorLog } from "../entities/error-log.event";
@EventsHandler(RecordErrorLog)
export class RecordErrorLogHandler implements IEventHandler<RecordErrorLog> {
async handle(event: RecordErrorLog) {
console.log(event, 'das error')
}
}