diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java index 0847ad6ddb..be365dde21 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionExecResultService.java @@ -327,10 +327,6 @@ public class ApiDefinitionExecResultService { saveResult.setName(item.getName()); saveResult.setType(type); saveResult.setCreateTime(item.getStartTime()); - if (SessionUtils.getUser() != null) { - saveResult.setUserId(SessionUtils.getUser().getId()); - } - String status = item.isSuccess() ? "success" : "error"; saveResult.setName(editStatus(type, status, saveResult.getCreateTime(), saveResult.getId(), testId)); saveResult.setStatus(status);