File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1292,12 +1292,11 @@ Model.init = function init(callback) {
1292
1292
} ) ;
1293
1293
} else {
1294
1294
_syncIndexes ( error => {
1295
- console . log ( '_syncIndexes' )
1296
1295
if ( error ) {
1297
1296
return reject ( error ) ;
1298
1297
}
1299
1298
resolve ( this ) ;
1300
- } )
1299
+ } ) ;
1301
1300
}
1302
1301
} ) ;
1303
1302
} ) ;
Original file line number Diff line number Diff line change @@ -872,14 +872,14 @@ describe('mongoose module:', function() {
872
872
m . set ( 'debug' , true ) ;
873
873
const db = await m . connect ( 'mongodb://localhost:27017/mongoose_test_11030' ) ;
874
874
const schema = new m . Schema ( {
875
- title : { type : String , index : true }
875
+ title : { type : String , index : true }
876
876
} ) ;
877
877
const syncFalse = db . model ( 'Sync' , schema , 'Sync' ) ;
878
878
await syncFalse . init ( ) ;
879
879
const Indexes = await syncFalse . listIndexes ( ) ;
880
880
console . log ( Indexes ) ;
881
881
assert . equal ( Indexes . length , 2 ) ;
882
- await syncFalse . collection . createIndex ( { name : 1 } ) ;
882
+ await syncFalse . collection . createIndex ( { name : 1 } ) ;
883
883
delete m . connection . models [ 'Sync' ] ;
884
884
m . set ( 'syncIndexes' , true ) ;
885
885
const syncSchema = new m . Schema ( { title : String } ) ;
You can’t perform that action at this time.
0 commit comments