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

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

Update internal/model/mongo/api.go

See merge request mashplace/backend/address!17
parents 10d736bf e35372b0
Branches
No related merge requests found
......@@ -76,7 +76,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