11 lines
332 B
TypeScript
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')
|
|
}
|
|
|
|
} |