fix create task definition bug (#6050)

This commit is contained in:
sky 2021-08-29 17:20:24 +08:00 committed by GitHub
parent 3b495d2fb0
commit bef57bde5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,8 +148,6 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
taskDefinitionLog.setUserId(loginUser.getId());
taskDefinitionLog.setVersion(1);
taskDefinitionLog.setCreateTime(now);
totalSuccessCode.add(taskDefinitionLog.getCode());
newTaskDefinitionLogs.add(taskDefinitionLog);
if (taskDefinitionLog.getCode() == 0) {
long code;
try {