14 lines
456 B
JavaScript
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
|