Skip to content

Commit 330fc74

Browse files
author
Shubham
committed
Write lastRelationId to model JSON
It is a required field when Sync server (version 5.0) parses the model JSON
1 parent c93a93a commit 330fc74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

objectbox/model/idsync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def _save_model_json(self):
7373
"modelVersionParserMinimum": MODEL_PARSER_VERSION,
7474
"entities": [],
7575
"lastEntityId": str(self.model.last_entity_iduid),
76-
"lastIndexId": str(self.model.last_index_iduid)
76+
"lastIndexId": str(self.model.last_index_iduid),
77+
"lastRelationId": str(self.model.last_relation_iduid)
7778
}
78-
# TODO lastRelationId
7979
# TODO modelVersion
8080
# TODO retiredEntityUids
8181
# TODO retiredIndexUids

0 commit comments

Comments
 (0)