import { CommandBus } from '@nestjs/cqrs' ; import { Injectable } from '@nestjs/common' ; import { ICommandBus } from 'src/Application/ICommandBus' ; import { ICommand } from 'src/Application/ICommand' ; @ Injectable ( ) export class CommandBusAdapter implements ICommandBus { constructor ( private readonly commandBus ) { } public execute ( command ) { return this . commandBus . execute ( command ) ; } }