mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-03 10:13:42 +00:00
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:
parent
40b3b0d6e7
commit
914866beff
@ -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});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user