File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @secjs/database" ,
3
- "version" : " 1.1.1 " ,
3
+ "version" : " 1.1.2 " ,
4
4
"description" : " Handle your application database with factories, seeders and query builder in Node.js" ,
5
5
"license" : " MIT" ,
6
6
"author" : " João Lenon <lenon@secjs.com.br>" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
13
13
Connection ,
14
14
isValidObjectId ,
15
15
} from 'mongoose'
16
- import { ObjectID } from 'bson '
16
+ import { ObjectID } from 'mongodb '
17
17
import { Transaction } from '../Utils/Transaction'
18
18
import { DriverFactory } from '../Utils/DriverFactory'
19
19
import { InternalServerException } from '@secjs/exceptions'
@@ -69,6 +69,7 @@ export class MongoDriver implements DriverContract {
69
69
const where = { ...this . _where }
70
70
71
71
this . _where = { }
72
+ this . _pipeline = [ ]
72
73
73
74
return where
74
75
}
@@ -79,6 +80,7 @@ export class MongoDriver implements DriverContract {
79
80
private get pipeline ( ) {
80
81
const pipeline = [ ...this . _pipeline ]
81
82
83
+ this . _where = { }
82
84
this . _pipeline = [ ]
83
85
84
86
return pipeline
You can’t perform that action at this time.
0 commit comments