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

Changed Mongo connection to mongodb+srv

parent ad66742d
No related branches found
Tags b0.40.1
No related merge requests found
......@@ -67,7 +67,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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment