diff --git a/internal/database/database.go b/internal/database/database.go index f7f1fd6..13a2827 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -60,7 +60,7 @@ func NewDatabase(cfg *config.Config) (*gorm.DB, error) { sqlDb, _ := db.DB() err = migrateDB(sqlDb) if err != nil { - return nil, err + panic(err) } return db, nil