Authored by 姜枫

fix deploy bug

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