Skip to content

Commit

Permalink
refactor DB
Browse files Browse the repository at this point in the history
  • Loading branch information
krichard1212 committed Jul 29, 2024
1 parent 5ab189c commit f440a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func DB() *gorm.DB {
config := GetConfig()
connection, err := gorm.Open(postgres.Open(config.Settings.Database.URI), &gorm.Config{})
if err != nil {
panic("failed to connect database")
panic(err)
}

if config.Settings.Database.AutoMigration {
Expand Down

0 comments on commit f440a81

Please sign in to comment.