refactor: removed duplicated types

This commit is contained in:
user
2021-09-29 22:26:38 +02:00
parent 46a5d4795f
commit ee9feab19f

View File

@@ -11,10 +11,7 @@ import { UserEntity } from '../../domain/entities/user.entity';
import { UserAlreadyExistsError } from '../../errors/user.errors';
@CommandHandler(CreateUserCommand)
export class CreateUserService extends CommandHandlerBase<
ID,
UserAlreadyExistsError
> {
export class CreateUserService extends CommandHandlerBase {
constructor(protected readonly unitOfWork: UnitOfWork) {
super(unitOfWork);
}