diff --git a/dependencies.list b/dependencies.list index 5eecf97c..8a44bc5a 100644 --- a/dependencies.list +++ b/dependencies.list @@ -1,5 +1,5 @@ PACKAGE_NAME=realm-js VERSION=1.2.0 -REALM_CORE_VERSION=2.5.1 -REALM_SYNC_VERSION=1.5.0 +REALM_CORE_VERSION=2.6.0 +REALM_SYNC_VERSION=1.5.2 REALM_OBJECT_SERVER_VERSION=1.3.0 diff --git a/src/js_sync.hpp b/src/js_sync.hpp index 369cfb5f..784c013a 100644 --- a/src/js_sync.hpp +++ b/src/js_sync.hpp @@ -123,7 +123,7 @@ void UserClass::create_user(ContextType ctx, FunctionType, ObjectType this_ob Value::validated_to_string(ctx, arguments[1]), Value::validated_to_string(ctx, arguments[2]), (std::string)Value::validated_to_string(ctx, arguments[0]), - Value::validated_to_boolean(ctx, arguments[3]))); + Value::validated_to_boolean(ctx, arguments[3]) ? SyncUser::TokenType::Admin : SyncUser::TokenType::Normal)); return_value.set(create_object>(ctx, user)); } diff --git a/src/object-store b/src/object-store index dd68cd72..91b460fa 160000 --- a/src/object-store +++ b/src/object-store @@ -1 +1 @@ -Subproject commit dd68cd727ae8702390f3231ef4df934fe214acd3 +Subproject commit 91b460fa5ad4083bdb5c59955cfd231bb2b25c54