fix: mongo uri connect (#1611)

pull/1637/head
a3d21 6 months ago committed by GitHub
parent 998d4a3504
commit cfde7bb0ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,6 +74,10 @@ func buildMongoURI() string {
return uri
}
if config.Config.Mongo.Uri != "" {
return config.Config.Mongo.Uri
}
username := os.Getenv("MONGO_USERNAME")
password := os.Getenv("MONGO_PASSWORD")
address := os.Getenv("MONGO_ADDRESS")

Loading…
Cancel
Save