refactor: replace interface{} by any
This commit is contained in:
@@ -5,9 +5,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
|
||||||
"goyco/internal/config"
|
"goyco/internal/config"
|
||||||
"goyco/internal/database"
|
"goyco/internal/database"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
func HandleMigrateCommand(cfg *config.Config, name string, args []string) error {
|
func HandleMigrateCommand(cfg *config.Config, name string, args []string) error {
|
||||||
@@ -37,7 +38,7 @@ func runMigrateCommand(db *gorm.DB) error {
|
|||||||
return fmt.Errorf("run migrations: %w", err)
|
return fmt.Errorf("run migrations: %w", err)
|
||||||
}
|
}
|
||||||
if IsJSONOutput() {
|
if IsJSONOutput() {
|
||||||
outputJSON(map[string]interface{}{
|
outputJSON(map[string]any{
|
||||||
"action": "migrations_applied",
|
"action": "migrations_applied",
|
||||||
"status": "success",
|
"status": "success",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user