fix(mongo): fix file name generation errors (#2479)

Before this, no matter what style is used, lowercase file names without underscores will be generated.
master
foliet 2 years ago committed by GitHub
parent 38a73d7fbe
commit b51339b69b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,7 +97,7 @@ func generateCustomModel(ctx *Context) error {
func generateTypes(ctx *Context) error {
for _, t := range ctx.Types {
fn, err := format.FileNamingFormat(ctx.Cfg.NamingFormat, t+"types")
fn, err := format.FileNamingFormat(ctx.Cfg.NamingFormat, t+"_types")
if err != nil {
return err
}

Loading…
Cancel
Save