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

Changed Mongo connection to mongodb+srv

parent be5d60fe
Branches
Tags b0.40.1 b0.40.2
No related merge requests found
......@@ -70,7 +70,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.
Please register or to comment