From 420ea06ee244b2c240d0dd001da6dba0baa00dd9 Mon Sep 17 00:00:00 2001 From: luantranminh Date: Sat, 1 Jun 2024 19:49:25 +0700 Subject: [PATCH] chore: fix type --- gormschema/gorm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gormschema/gorm.go b/gormschema/gorm.go index 71310b0..b8494b8 100644 --- a/gormschema/gorm.go +++ b/gormschema/gorm.go @@ -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