"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typeorm_1 = require("typeorm");
const entities_1 = require("../../../entities");
exports.updateGroup = {
    async updateGroup(_, { id, patch }) {
        const repository = typeorm_1.getRepository(entities_1.Group);
        const group = await repository.findOne({ id }, {
            relations: ['boards']
        });
        return await repository.save(Object.assign({}, group, patch));
    }
};
//# sourceMappingURL=update-group.js.map