fix: 删除项目后端少引入函数的bug

This commit is contained in:
wenbo.dong 2017-08-18 11:39:43 +08:00
parent 08a91f7c41
commit bd69021da9
2 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,8 @@ import projectModel from '../models/project.js';
import yapi from '../yapi.js'; import yapi from '../yapi.js';
import baseController from './base.js'; import baseController from './base.js';
import interfaceModel from '../models/interface.js'; import interfaceModel from '../models/interface.js';
import interfaceColModel from '../models/interfaceCol.js';
import interfaceCaseModel from '../models/interfaceCase.js';
import groupModel from '../models/group'; import groupModel from '../models/group';
import commons from '../utils/commons.js'; import commons from '../utils/commons.js';
import userModel from '../models/user.js'; import userModel from '../models/user.js';

View File

@ -48,6 +48,14 @@ var _interface = require('../models/interface.js');
var _interface2 = _interopRequireDefault(_interface); var _interface2 = _interopRequireDefault(_interface);
var _interfaceCol = require('../models/interfaceCol.js');
var _interfaceCol2 = _interopRequireDefault(_interfaceCol);
var _interfaceCase = require('../models/interfaceCase.js');
var _interfaceCase2 = _interopRequireDefault(_interfaceCase);
var _group = require('../models/group'); var _group = require('../models/group');
var _group2 = _interopRequireDefault(_group); var _group2 = _interopRequireDefault(_group);
@ -812,8 +820,8 @@ var projectController = function (_baseController) {
case 9: case 9:
interfaceInst = _yapi2.default.getInst(_interface2.default); interfaceInst = _yapi2.default.getInst(_interface2.default);
interfaceColInst = _yapi2.default.getInst(interfaceColModel); interfaceColInst = _yapi2.default.getInst(_interfaceCol2.default);
interfaceCaseInst = _yapi2.default.getInst(interfaceCaseModel); interfaceCaseInst = _yapi2.default.getInst(_interfaceCase2.default);
_context8.next = 14; _context8.next = 14;
return interfaceInst.delByProjectId(_id); return interfaceInst.delByProjectId(_id);