Skip to content

Commit

Permalink
fix: mongo uri connect (#1611)
Browse files Browse the repository at this point in the history
  • Loading branch information
a3d21 authored Dec 29, 2023
1 parent 998d4a3 commit cfde7bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/common/db/unrelation/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cfde7bb

Please sign in to comment.