chore: panic error during database migration

This commit is contained in:
divyam234 2024-07-01 13:52:44 +05:30
parent ae280eb532
commit c8c569a643

View file

@ -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