|
|
@ -726,7 +726,7 @@ export default { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
forceTaskSuccess ({ state }, payload) { |
|
|
|
forceTaskSuccess ({ state }, payload) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
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) |
|
|
|
resolve(res) |
|
|
|
}).catch(e => { |
|
|
|
}).catch(e => { |
|
|
|
reject(e) |
|
|
|
reject(e) |
|
|
|