mirror of
https://github.com/mainnika/mongox-go-driver.git
synced 2026-05-22 15:53:36 +00:00
Fix ctx bug
This commit is contained in:
@@ -45,7 +45,7 @@ func (d *Database) Name() string {
|
||||
// New function creates new database context with same client
|
||||
func (d *Database) New(ctx context.Context) mongox.Database {
|
||||
|
||||
if ctx != nil {
|
||||
if ctx == nil {
|
||||
ctx = context.Background()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user