import { IUserRepository } from '../../../Domain/IRepository/IUserRepository'; import { ActivateUserCommand } from './ActivateUserCommand'; export class ActivateUserCommandHandler { constructor(private readonly userRepo: IUserRepository) {} async execute(cmd: ActivateUserCommand): Promise { await this.userRepo.activate(cmd.id); return true; } }