Fix the error of mandatory success and failure task (#6305)

close #6301
This commit is contained in:
Tandoy 2021-09-23 14:26:15 +08:00 committed by GitHub
parent 9115062838
commit b8ed7e6f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -726,7 +726,7 @@ export default {
*/
forceTaskSuccess ({ state }, payload) {
return new Promise((resolve, reject) => {
io.post(`projects/${state.projectCode}/task-instances/${payload.code}/force-success`, payload, res => {
io.post(`projects/${state.projectCode}/task-instances/${payload.taskInstanceId}/force-success`, payload, res => {
resolve(res)
}).catch(e => {
reject(e)