"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const typeorm_1 = require("typeorm");
const entities_1 = require("../../../entities");
exports.deleteDataSource = {
    async deleteDataSource(_, { id }) {
        const repository = typeorm_1.getRepository(entities_1.DataSource);
        /* TODO - 관련된 publisher가 있는 경우에는 datasource를 삭제할 수 없다. */
        return await repository.delete(id);
    }
};
//# sourceMappingURL=delete-datasource.js.map