File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/Adapters/Storage/Mongo Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -570,13 +570,18 @@ export class MongoStorageAdapter {
570
570
. then ( ( classes ) => {
571
571
572
572
// map out promises from individual classes
573
- const promises = classes . map ( ( schema ) => {
573
+ const promises = classes . map ( ( ) => { // schema
574
574
575
+
576
+ /* eslint-disable no-console */
577
+ //console.info(`>>>>>> Preparing for ` + schema.className);
578
+ /* eslint-enable no-console */
579
+
580
+ /*
575
581
// get indexes for this given collection
576
- return this . getIndexes ( schema . className ) . then ( ( ) => {
582
+ return this.getIndexes(schema.className).then(() => { // indexes
577
583
578
584
// reduce indexes
579
- /*
580
585
indexes = indexes.reduce((obj, index) => {
581
586
obj[index.name] = index.key;
582
587
return obj;
@@ -587,9 +592,9 @@ export class MongoStorageAdapter {
587
592
.then(schemaCollection => schemaCollection.updateSchema(schema.className, {
588
593
$set: { _metadata: { indexes: indexes } }
589
594
}));
590
- */
591
595
592
596
});
597
+ */
593
598
} ) ;
594
599
return Promise . all ( promises ) ;
595
600
} ) ;
You can’t perform that action at this time.
0 commit comments