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

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

Update internal/model/mongo/api.go

See merge request mashplace/backend/viewing!56
parents 5df227dc ec927988
Branches
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment