Release 2.7.1

(#4410)
* Adds failing test for 4409

* Adds fix

*  Release 2.7.1
This commit is contained in:
Florent Vilmart
2017-12-01 09:16:58 -05:00
committed by GitHub
parent ca542c3750
commit 1f22ee36e7
4 changed files with 43 additions and 4 deletions

View File

@@ -166,7 +166,7 @@ export class MongoStorageAdapter {
setClassLevelPermissions(className, CLPs) {
return this._schemaCollection()
.then(schemaCollection => schemaCollection.updateSchema(className, {
$set: { _metadata: { class_permissions: CLPs } }
$set: { '_metadata.class_permissions': CLPs }
}));
}
@@ -212,7 +212,7 @@ export class MongoStorageAdapter {
.then(() => insertPromise)
.then(() => this._schemaCollection())
.then(schemaCollection => schemaCollection.updateSchema(className, {
$set: { _metadata: { indexes: existingIndexes } }
$set: { '_metadata.indexes': existingIndexes }
}));
}
@@ -231,7 +231,7 @@ export class MongoStorageAdapter {
}, {});
return this._schemaCollection()
.then(schemaCollection => schemaCollection.updateSchema(className, {
$set: { _metadata: { indexes: indexes } }
$set: { '_metadata.indexes': indexes }
}));
}).catch(() => {
// Ignore if collection not found