Handle LiveQuery create event with fields (#5790)
Close: https://github.com/parse-community/parse-server/issues/5764 Fix logic handling null original object
This commit is contained in:
@@ -96,7 +96,7 @@ class Client {
|
||||
fields = this.subscriptionInfos.get(subscriptionId).fields;
|
||||
}
|
||||
response['object'] = this._toJSONWithFields(parseObjectJSON, fields);
|
||||
if (typeof parseOriginalObjectJSON !== 'undefined') {
|
||||
if (parseOriginalObjectJSON) {
|
||||
response['original'] = this._toJSONWithFields(
|
||||
parseOriginalObjectJSON,
|
||||
fields
|
||||
|
||||
Reference in New Issue
Block a user