fix(接口测试): 修复更新场景定时任务环境后未生效的缺陷

--bug=1012257 --user=王孝刚
【接口测试】-选择一个场景-设置定时任务-5分钟一次-这期间修改定时任务的运行环境和资源池未生效
https://www.tapd.cn/55049933/s/1135934
This commit is contained in:
wxg0103 2022-04-15 18:10:44 +08:00 committed by 刘瑞斌
parent c79dbfee90
commit 46afa2fa9c
2 changed files with 2 additions and 1 deletions

View File

@ -316,6 +316,7 @@ public class ScheduleService {
triggerKey = ApiScenarioTestJob.getTriggerKey(request.getResourceId()); triggerKey = ApiScenarioTestJob.getTriggerKey(request.getResourceId());
clazz = ApiScenarioTestJob.class; clazz = ApiScenarioTestJob.class;
request.setJob(ApiScenarioTestJob.class.getName()); request.setJob(ApiScenarioTestJob.class.getName());
needResetJob = true;
} }
this.editSchedule(request); this.editSchedule(request);

View File

@ -408,7 +408,7 @@ export default {
} else { } else {
param.scheduleFrom = "scenario"; param.scheduleFrom = "scenario";
if (param.id) { if (param.id) {
url = '/api/automation/schedule/update'; url = '/schedule/update';
} }
} }