Skip to content
Snippets Groups Projects
Commit ececd4bd authored by rromanov's avatar rromanov
Browse files

Changed Mongo connection to mongodb+srv

parent df66dad6
Branches
Tags b0.40.1
No related merge requests found
......@@ -71,7 +71,7 @@ func NewRepository(ctx context.Context, config *Config) (model.Repository, error
return nil, err
}
clientOptions := options.Client().ApplyURI(fmt.Sprintf("mongodb://%s", config.URL)).
clientOptions := options.Client().ApplyURI(fmt.Sprintf("mongodb+srv://%s", config.URL)).
SetAuth(options.Credential{
AuthSource: config.AuthSource,
Username: config.Username,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment