fix wrong dbname
This commit is contained in:
		@ -65,7 +65,7 @@ func run() (*driver.DB, error) {
 | 
			
		||||
 | 
			
		||||
	// connect to database
 | 
			
		||||
	log.Println("Connecting to database...")
 | 
			
		||||
	dsn := fmt.Sprintf("host=localhost port=5432 dbname=test_connect user=%s password=%s", os.Getenv("PGUSER"), os.Getenv("PGPWD"))
 | 
			
		||||
	dsn := fmt.Sprintf("host=localhost port=5432 dbname=bookings user=%s password=%s", os.Getenv("PGUSER"), os.Getenv("PGPWD"))
 | 
			
		||||
	db, err := driver.ConnectSQL(dsn)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		log.Fatal("Cannot connect to database! Dying...")
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user