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

Changed mongo connect

parent 6ec2dd0a
Branches
Tags b0.40.2
No related merge requests found
......@@ -81,7 +81,7 @@ func NewRepository(ctx context.Context, config *Config) (model.Repository, error
return nil, err
}
clientOptions := options.Client().ApplyURI(fmt.Sprintf("mongodb+srv://%s", config.URL)).
clientOptions := options.Client().ApplyURI(fmt.Sprintf("mongodb://%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