Update environment variable for database connection and add user fixture script

This commit is contained in:
2026-03-22 16:44:49 -05:00
parent 8185a22e32
commit b39b07b144
3 changed files with 263 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ func main() {
log.Fatal("Error al cargar el archivo .env")
}
dbpool, err := pgxpool.New(context.Background(), os.Getenv("DATABASE_URL"))
dbpool, err := pgxpool.New(context.Background(), os.Getenv("PG_FROM_DB_URL"))
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to create connection pool: %v\n", err)
os.Exit(1)