feat: 调整逻辑无论是否创建菜单或API都注册自动化代码历史 (#1804)

* feat: 调整逻辑无论是否创建菜单或API都注册自动化代码历史

---------

Co-authored-by: wall-js <wall_js@foxmail.com>
This commit is contained in:
Wall
2024-07-01 10:43:32 +08:00
committed by GitHub
co-authored by wall-js
parent a4f139f855
commit d497e96407
-2
View File
@@ -303,7 +303,6 @@ func (autoCodeService *AutoCodeService) CreateTemp(autoCode system.AutoCodeStruc
bf.WriteString(";") bf.WriteString(";")
} }
} }
if autoCode.AutoCreateApiToSql || autoCode.AutoCreateMenuToSql {
if autoCode.TableName != "" { if autoCode.TableName != "" {
err = AutoCodeHistoryServiceApp.CreateAutoCodeHistory( err = AutoCodeHistoryServiceApp.CreateAutoCodeHistory(
string(meta), string(meta),
@@ -331,7 +330,6 @@ func (autoCodeService *AutoCodeService) CreateTemp(autoCode system.AutoCodeStruc
menuID, menuID,
) )
} }
}
if err != nil { if err != nil {
return err return err
} }