fix products listing
This commit is contained in:
@@ -11,8 +11,8 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
const GENERATED_FILES_FOLDER = "./app/model/prestadb"
|
||||
const GENERATED_MODEL_PKG = "prestadb"
|
||||
const GENERATED_FILES_FOLDER = "./app/model/dbmodel"
|
||||
const GENERATED_MODEL_PKG = "dbmodel"
|
||||
|
||||
type GormGenModels struct {
|
||||
db *gorm.DB
|
||||
@@ -115,7 +115,7 @@ func (m *GormGenModels) cleanupGeneratedFiles() error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Remove package prestadb imports that reference generated DO
|
||||
// Remove package dbmodel imports that reference generated DO
|
||||
// and clean up the code
|
||||
content = m.cleanModelContent(content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user