mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-30 11:17:54 +08:00
Reduce queries after successful project creation. (#4901)
This commit is contained in:
parent
a388b6853d
commit
139211f3dd
@ -97,8 +97,7 @@ public class ProjectServiceImpl extends BaseServiceImpl implements ProjectServic
|
||||
.build();
|
||||
|
||||
if (projectMapper.insert(project) > 0) {
|
||||
Project insertedProject = projectMapper.queryByName(name);
|
||||
result.put(Constants.DATA_LIST, insertedProject);
|
||||
result.put(Constants.DATA_LIST, project);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
} else {
|
||||
putMsg(result, Status.CREATE_PROJECT_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user