changed env for DB to be more DB agnostic

This commit is contained in:
David Janowski 2023-06-22 11:00:08 +02:00
parent 83ba0f6464
commit 9c98059972

View File

@ -22,7 +22,7 @@ func init() {
log.SetOutput(os.Stdout)
// Only log the warning severity or above.
log.SetLevel(log.InfoLevel)
log.SetLevel(log.DebugLevel)
// Logging Method Name
//log.SetReportCaller(true)
@ -43,7 +43,7 @@ func main() {
case "neo4j":
log.Println("Setup Neo4J Connection")
graphConnection = neo4j.NewNeo4JConnection()
err = graphConnection.Connect(ctx, config.DBEndpoint, config.Neo4jUsername, config.Neo4jPassword)
err = graphConnection.Connect(ctx, config.DBEndpoint, config.DBUsername, config.DBPassword)
if err != nil {
panic(err)
}