Skip to content

Commit 91da0a8

Browse files
yulingtianxiaphillwiggins
authored andcommitted
Delete toJson and fix exception. (#187)
* Fix Commit: 6ed26e1 * Update parse_encoder.dart Fix parse encoder bug. * Fix exception when sendSessionId is null. * delete toJson calling.
1 parent edab679 commit 91da0a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/network/parse_live_query.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class LiveQuery {
1111
securityContext: ParseCoreData().securityContext);
1212

1313
_debug = isDebugEnabled(objectLevelDebug: debug);
14-
_sendSessionId = autoSendSessionId ?? ParseCoreData().autoSendSessionId;
14+
_sendSessionId = autoSendSessionId ?? ParseCoreData().autoSendSessionId ?? true;
1515
}
1616

1717
WebSocket _webSocket;

lib/src/utils/parse_encoder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dynamic parseEncode(dynamic value, {bool full}) {
3535
}
3636

3737
if (value is ParseRelation) {
38-
return value.toJson();
38+
return value;
3939
}
4040

4141
if (value is ParseObject || value is ParseUser) {

0 commit comments

Comments
 (0)