stay code :P

This commit is contained in:
pigwin
2025-02-08 14:48:20 +00:00
parent 8c0bd734c6
commit 6632c38c0c
7 changed files with 39 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ import (
func ConnectToPostgreSQL() (*sql.DB, error) {
fmt.Println("Connecting to PostgreSQL...")
config, err := LoadConfig("config/conf.json")
config, err := LoadConfig()
if err != nil {
return nil, err
}
@@ -57,7 +57,7 @@ func DisconnectFromPostgreSQL(db *sql.DB) error {
}
func PrintDBConfig() {
config, err := LoadConfig("config/conf.json")
config, err := LoadConfig()
if err != nil {
fmt.Println("Error loading config:", err)
return