update db connection

This commit is contained in:
2025-03-13 09:02:31 +07:00
parent 70e29fd554
commit 80d1f95f66
2 changed files with 56 additions and 15 deletions

View File

@@ -20,10 +20,11 @@ type Server struct {
func NewServer() *http.Server {
port, _ := strconv.Atoi(os.Getenv("PORT"))
master := os.Getenv("BLUEPRINT_DB_MASTER")
NewServer := &Server{
port: port,
db: database.New(),
db: database.New(master),
}
// Declare Server config