Files
SerpentRace/SerpentRace_Backend/dist/Application/User/commands/DeactivateUserCommandHandler.js
T

14 lines
456 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeactivateUserCommandHandler = void 0;
class DeactivateUserCommandHandler {
constructor(userRepo) {
this.userRepo = userRepo;
}
async execute(cmd) {
await this.userRepo.deactivate(cmd.id);
return true;
}
}
exports.DeactivateUserCommandHandler = DeactivateUserCommandHandler;
//# sourceMappingURL=DeactivateUserCommandHandler.js.map