Skip to content

Commit

Permalink
fix(cli): fixed cli generate error
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed May 25, 2020
1 parent 9e7e0a9 commit ef68292
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/admin/modules/tools/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ func NewParam(cfg Config) Param {
dbTable = cfg.Schema + "." + cfg.Table
}

fields := getFieldsFromConn(cfg.Conn, dbTable, cfg.Driver)

return Param{
Connection: cfg.Connection,
Driver: cfg.Driver,
Expand All @@ -114,7 +116,8 @@ func NewParam(cfg Config) Param {
HideResetButton: cfg.HideResetButton,
HideBackButton: cfg.HideBackButton,
RowTable: cfg.Table,
Fields: getFieldsFromConn(cfg.Conn, dbTable, cfg.Driver),
Fields: fields,
FormFields: fields,
Output: cfg.Output,
}
}
Expand Down

0 comments on commit ef68292

Please sign in to comment.