Files
SerpentRace/SerpentRace_Backend/src/Application/User/commands/ActivateUserCommandHandler.ts
T
2025-10-27 20:35:07 +01:00

12 lines
373 B
TypeScript

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