Skip to content

Commit

Permalink
opt: 自动化代码插件gorm改造完成
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Jul 24, 2024
1 parent da048d3 commit 38dfd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/ast/plugin_initialize_gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (a *PluginInitializeGorm) Injection(file *ast.File) error {
}

selExpr, ok := callExpr.Fun.(*ast.SelectorExpr)
if ok && selExpr.Sel.Name == a.StructName {
if ok && selExpr.Sel.Name == "AutoMigrate" {
call = callExpr
return false
}
Expand Down

0 comments on commit 38dfd62

Please sign in to comment.