Skip to content

Commit

Permalink
Update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedelbo committed Jan 10, 2022
1 parent 77931ae commit 6e0cec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Freezing a Realm with a schema that has orphaned embeeded object types threw a "Wrong transactional state" exception (since v11.5.0).
* SyncManager::path_for_realm now returns a default path when FLX sync is enabled ([#5088](https://github.com/realm/realm-core/pull/5088))
* Having links in a property of Mixed type would lead to ill-formed JSON output when serializing the database. ([#5125](https://github.com/realm/realm-core/issues/5125), since v11.0.0)
* UserIdentity metadata table grows indefinitely. ([#5152](https://github.com/realm/realm-core/issues/5152), since v10.0.0)

### Breaking changes
* FLX SubscriptionSet type split into SubscriptionSet and MutableSubscriptionSet to add type safety ([#5092](https://github.com/realm/realm-core/pull/5092))
Expand Down
5 changes: 3 additions & 2 deletions src/realm/object-store/sync/impl/sync_metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,9 @@ void SyncUserMetadata::set_identities(std::vector<SyncUserIdentity> identities)

for (auto& ident : identities) {
ObjKey obj_key = identities_table->where()
.equal(col_user_id, StringData(ident.id))
.equal(col_provider_type, StringData(ident.provider_type)).find();
.equal(col_user_id, StringData(ident.id))
.equal(col_provider_type, StringData(ident.provider_type))
.find();
if (!obj_key) {
auto obj = link_list.get_target_table()->create_object();
obj.set<String>(c_sync_user_id, ident.id);
Expand Down

0 comments on commit 6e0cec2

Please sign in to comment.