mirror of
https://github.com/gofiber/storage.git
synced 2025-12-24 05:08:39 +08:00
Rename Connection to ConnectionURL
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user