Nh/fix 753 (#755)

* Fix Android compilation (Using  EPOLL commit helper)

* Fixe Symbol.iterator on Android

* Fixing testSchema test for Release
This commit is contained in:
Nabil Hachicha 2016-12-28 16:16:37 +00:00 committed by Kristian Dupont
parent 40b3b0d6e7
commit 914866beff

View File

@ -799,7 +799,13 @@ module.exports = {
schemas.PersonObject, schemas.LinkTypes];
var schemaMap = {};
originalSchema.forEach(function(objectSchema) { schemaMap[objectSchema.name] = objectSchema; });
originalSchema.forEach(function(objectSchema) {
if (objectSchema.schema) { // for PersonObject
schemaMap[objectSchema.schema.name] = objectSchema;
} else {
schemaMap[objectSchema.name] = objectSchema;
}
});
var realm = new Realm({schema: originalSchema});