Skip to content

Commit

Permalink
chore: fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
luantranminh committed Jun 1, 2024
1 parent 0f93284 commit 420ea06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gormschema/gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func BuildStmt(fn func(db *gorm.DB) *gorm.DB) ViewOption {

// orderModels places join tables at the end of the list of models (if any),
// which helps GORM resolve m2m relationships correctly.
func (m *migrator) orderModels(models []any) ([]any, error) {
func (m *migrator) orderModels(models ...any) ([]any, error) {
var (
joinTableDBNames = make(map[string]bool)
otherTables []any
Expand Down

0 comments on commit 420ea06

Please sign in to comment.