13 lines
442 B
TypeScript
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
|
|
}
|
|
}
|