File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -833,7 +833,7 @@ Model.prototype.$__version = function(where, delta) {
833
833
return ;
834
834
}
835
835
836
- if ( key === false ) {
836
+ if ( key === false ) {
837
837
return ;
838
838
}
839
839
Original file line number Diff line number Diff line change @@ -7563,22 +7563,22 @@ describe('Model', function() {
7563
7563
7564
7564
} ) ;
7565
7565
it ( 'Using bulkSave should not trigger an error (gh-11071)' , async function ( ) {
7566
-
7566
+
7567
7567
const pairSchema = mongoose . Schema ( {
7568
- name : String ,
7569
- timestamp : String
7568
+ name : String ,
7569
+ timestamp : String
7570
7570
} , { versionKey : false } ) ;
7571
-
7571
+
7572
7572
const model = db . model ( 'test' , pairSchema ) ;
7573
7573
const tests = [
7574
7574
{ name : 't1' , timestamp : Date . now ( ) } ,
7575
7575
{ name : 't2' , timestamp : Date . now ( ) } ,
7576
7576
{ name : 't3' , timestamp : Date . now ( ) } ,
7577
- { name : 't4' , timestamp : Date . now ( ) } ,
7577
+ { name : 't4' , timestamp : Date . now ( ) }
7578
7578
] ;
7579
7579
7580
7580
model . insertMany ( tests , {
7581
- ordered : false
7581
+ ordered : false
7582
7582
} ) ;
7583
7583
const entries = await model . find ( { } ) ;
7584
7584
for ( const p of entries ) {
You can’t perform that action at this time.
0 commit comments