feat: Allow Parse.Object pointers in Cloud Code arguments (#8490)
This commit is contained in:
@@ -18,6 +18,12 @@ function parseObject(obj) {
|
||||
return Object.assign(new Date(obj.iso), obj);
|
||||
} else if (obj && obj.__type == 'File') {
|
||||
return Parse.File.fromJSON(obj);
|
||||
} else if (obj && obj.__type == 'Pointer') {
|
||||
return Parse.Object.fromJSON({
|
||||
__type: 'Pointer',
|
||||
className: obj.className,
|
||||
objectId: obj.objectId,
|
||||
});
|
||||
} else if (obj && typeof obj === 'object') {
|
||||
return parseParams(obj);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user