We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f16f1 commit bbd50faCopy full SHA for bbd50fa
Firestore/core/src/model/object_value.cc
@@ -129,9 +129,9 @@ void ApplyChanges(
129
130
// Check if the source key is updated by the next upsert
131
if (upsert_it != upserts.end() && upsert_it->first == key) {
132
- FreeNanopbMessage(google_firestore_v1_Value_fields,
133
- &source_fields[source_index].value);
134
- target_fields[target_index].key = source_fields[source_index].key;
+ FreeNanopbMessage(google_firestore_v1_MapValue_FieldsEntry_fields,
+ &source_fields[source_index]);
+ target_fields[target_index].key = MakeBytesArray(upsert_it->first);
135
target_fields[target_index].value = DeepClone(upsert_it->second);
136
137
++upsert_it;
0 commit comments