"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typeorm_1 = require("typeorm");
const entities_1 = require("../../../entities");
exports.updateFont = {
    async updateFont(_, { name, patch }) {
        const repository = typeorm_1.getRepository(entities_1.Font);
        const font = await repository.findOne({ name });
        return await repository.save(Object.assign({}, font, patch));
    }
};
//# sourceMappingURL=update-font.js.map