Merge pull request #10 from Selly-Modules/feature/merchant

fix code
This commit is contained in:
nguyenphamquangtue 2022-10-05 14:08:24 +07:00 committed by GitHub
commit a83e938deb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -86,3 +86,13 @@ func Init(config Config) (*Service, error) {
func GetInstance() *Service { func GetInstance() *Service {
return s return s
} }
// GetConnectOptions ...
func GetConnectOptions(Host, DBName string) mongodb.Config {
return mongodb.Config{
Host: Host,
DBName: DBName,
Standalone: &mongodb.ConnectStandaloneOpts{},
TLS: &mongodb.ConnectTLSOpts{},
}
}