From 6c8542414f77f9369eff695abc9f21110992c7ba Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Sat, 25 Jan 2025 01:17:34 +0000 Subject: [PATCH] Removing accidental extra character --- restapi/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi/db.go b/restapi/db.go index 5de9979..c02838c 100644 --- a/restapi/db.go +++ b/restapi/db.go @@ -11,7 +11,7 @@ var pool *pgxpool.Pool func getDbPool() *pgxpool.Pool { // Setup Database - dburl := "postgres://" + os.Getenv("POSTGRES_USER") + ":" +u os.Getenv("POSTGRES_PASSWORD") + "@" + os.Getenv("POSTGRES_HOSTNAME") + "/" + os.Getenv("POSTGRES_DB") + dburl := "postgres://" + os.Getenv("POSTGRES_USER") + ":" + os.Getenv("POSTGRES_PASSWORD") + "@" + os.Getenv("POSTGRES_HOSTNAME") + "/" + os.Getenv("POSTGRES_DB") pool, err := pgxpool.Connect(context.Background(), dburl) if err != nil { log.Fatal("Unable to connect to database:", err)