import { EventsHandler , IEventHandler } from '@nestjs/cqrs' ; import { MinistriesOperationTypeChangesEvent } from '../events' ; import { MinistriesService } from '../ministries.service' ; @ EventsHandler ( MinistriesOperationTypeChangesEvent ) export class MinistriesOperationTypeChangesHandler implements IEventHandler < MinistriesOperationTypeChangesEvent > { constructor ( private readonly minstriesService ) { } public async handle ( ) { this . minstriesService . getList ( true ) ; } }