mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
fix for wrong id
This commit is contained in:
parent
6d850cba5e
commit
088fb8bf66
@ -88,8 +88,8 @@ static RPCObjectID s_id_counter = 0;
|
|||||||
s_requests["/get_property"] = [=](NSDictionary *dict) {
|
s_requests["/get_property"] = [=](NSDictionary *dict) {
|
||||||
JSValueRef exception = NULL;
|
JSValueRef exception = NULL;
|
||||||
JSStringRef propString = RJSStringForString([dict[@"name"] UTF8String]);
|
JSStringRef propString = RJSStringForString([dict[@"name"] UTF8String]);
|
||||||
RPCObjectID realmId = [dict[@"realmId"] longValue];
|
RPCObjectID objectId = [dict[@"objectId"] longValue];
|
||||||
JSValueRef propertyValue = ObjectGetProperty(s_context, s_objects[realmId], propString, &exception);
|
JSValueRef propertyValue = ObjectGetProperty(s_context, s_objects[objectId], propString, &exception);
|
||||||
JSStringRelease(propString);
|
JSStringRelease(propString);
|
||||||
|
|
||||||
if (exception) {
|
if (exception) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user