"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateDeckCommandHandler = void 0; const DeckMapper_1 = require("../../DTOs/Mappers/DeckMapper"); class UpdateDeckCommandHandler { constructor(deckRepo) { this.deckRepo = deckRepo; } async execute(cmd) { const updated = await this.deckRepo.update(cmd.id, { ...cmd }); if (!updated) return null; return DeckMapper_1.DeckMapper.toShortDto(updated); } } exports.UpdateDeckCommandHandler = UpdateDeckCommandHandler; //# sourceMappingURL=UpdateDeckCommandHandler.js.map