File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ void ApplyChanges(
115
115
for (pb_size_t source_index = 0 , target_index = 0 ;
116
116
target_index < target_count;) {
117
117
if (source_index < source_count) {
118
- absl::string_view key = MakeString (source_fields[source_index].key );
118
+ std::string key = MakeString (source_fields[source_index].key );
119
119
120
120
// Check if the source key is deleted
121
121
if (delete_it != deletes.end () && *delete_it == key) {
@@ -129,9 +129,9 @@ void ApplyChanges(
129
129
130
130
// Check if the source key is updated by the next upsert
131
131
if (upsert_it != upserts.end () && upsert_it->first == key) {
132
- FreeNanopbMessage (google_firestore_v1_MapValue_FieldsEntry_fields ,
133
- &source_fields[source_index]);
134
- target_fields[target_index].key = MakeBytesArray (upsert_it-> first ) ;
132
+ FreeNanopbMessage (google_firestore_v1_Value_fields ,
133
+ &source_fields[source_index]. value );
134
+ target_fields[target_index].key = source_fields[source_index]. key ;
135
135
target_fields[target_index].value = DeepClone (upsert_it->second );
136
136
137
137
++upsert_it;
You can’t perform that action at this time.
0 commit comments