fix(接口测试): 执行中的用例状态显示有误

This commit is contained in:
AgAngle 2024-03-25 21:06:24 +08:00 committed by 刘瑞斌
parent 14bfaa07ff
commit e780c4035d
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ public class ApiExecuteResourceController {
LogUtils.info("获取执行脚本: {}", key);
String script = stringRedisTemplate.opsForValue().get(key);
stringRedisTemplate.delete(key);
apiReportService.updateReportStatus(reportId, ApiReportStatus.RERUNNING.name());
apiScenarioReportService.updateReportStatus(reportId, ApiReportStatus.RERUNNING.name());
apiReportService.updateReportStatus(reportId, ApiReportStatus.RUNNING.name());
apiScenarioReportService.updateReportStatus(reportId, ApiReportStatus.RUNNING.name());
return Optional.ofNullable(script).orElse(StringUtils.EMPTY);
}