Skip to content

Commit

Permalink
fix(backend): remove function from db module
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Oct 11, 2023
1 parent 6864213 commit 7682b87
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions backend/internal/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,5 @@ func InitializeDatabase() (*gorm.DB, error) {
return nil, fmt.Errorf("Failed to connect to database: %v", err)
}

// After successfully connecting to the database
if err := createAdminUserIfNotExist(db); err != nil {
return nil, fmt.Errorf("Failed to create admin user: %v", err)
}

return db, nil
}

0 comments on commit 7682b87

Please sign in to comment.