11 lines
405 B
TypeScript
11 lines
405 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) {}
|
|
}
|