Authored by 姜枫

fix deploy bug

... ... @@ -191,7 +191,7 @@ const p = {
msg: '该版本不存在'
};
} else if (building.state == 'success') {
let project = await Project.findByName(building.project);
let project = await Project.findById(building.projectId);
let targets = project.deploy[building.env].target;
targets.forEach(async(host) => {
... ...