Skip to content
Snippets Groups Projects
Commit adab9219 authored by Роман Романов's avatar Роман Романов
Browse files

Merge branch 'rromanov-master-patch-19956' into 'master'

Update internal/model/mongo/api.go

See merge request mashplace/backend/oauth!18
parents d0c0a5cf e98591f6
Branches
No related merge requests found
......@@ -77,7 +77,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