"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typeorm_1 = require("typeorm");
const entities_1 = require("../entities");
const SEED_FONTS = ['Roboto', 'Pangolin', 'Railway', 'Slabo', 'Skranji'];
class seedFonts1525758367829 {
    async up(queryRunner) {
        const repository = typeorm_1.getRepository(entities_1.Font);
        SEED_FONTS.forEach(async (font) => {
            await repository.save({
                name: font,
                provider: 'google',
                uri: '',
                path: '',
                active: false
            });
        });
    }
    async down(queryRunner) {
        const repository = typeorm_1.getRepository(entities_1.Font);
        SEED_FONTS.reverse().forEach(async (font) => {
            let record = await repository.findOne({ name: font });
            await repository.remove(record);
        });
    }
}
exports.seedFonts1525758367829 = seedFonts1525758367829;
//# sourceMappingURL=1525758367829-SeedFonts.js.map