Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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) => { |
-
Please register or login to post a comment