Rename Connection to ConnectionURL

This commit is contained in:
Kalissaac
2020-12-01 16:12:51 -08:00
parent e5d9b064ca
commit ea23fabafa
3 changed files with 20 additions and 20 deletions

View File

@@ -36,8 +36,8 @@ func New(config ...Config) *Storage {
var dsn string
// Check if user supplied connection string
if cfg.Connection != "" {
dsn = cfg.Connection
if cfg.ConnectionURI != "" {
dsn = cfg.ConnectionURI
} else {
dsn = "mongodb://"
if cfg.Username != "" {