"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeleteDeckCommandHandler = void 0; class DeleteDeckCommandHandler { constructor(deckRepo) { this.deckRepo = deckRepo; } async execute(cmd) { if (cmd.soft) { await this.deckRepo.softDelete(cmd.id); } else { await this.deckRepo.delete(cmd.id); } return true; } } exports.DeleteDeckCommandHandler = DeleteDeckCommandHandler; //# sourceMappingURL=DeleteDeckCommandHandler.js.map