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 @@ -95,6 +95,9 @@ FieldValue DocumentSnapshotInternal::ConvertAnyValue(
95
95
const google_firestore_v1_Value& input, ServerTimestampBehavior stb) const {
96
96
switch (input.which_value_type ) {
97
97
case google_firestore_v1_Value_map_value_tag:
98
+ if (IsServerTimestamp (input)) {
99
+ return ConvertServerTimestamp (input, stb);
100
+ }
98
101
return ConvertObject (input.map_value , stb);
99
102
case google_firestore_v1_Value_array_value_tag:
100
103
return ConvertArray (input.array_value , stb);
@@ -131,10 +134,7 @@ FieldValue DocumentSnapshotInternal::ConvertScalar(
131
134
const google_firestore_v1_Value& scalar,
132
135
ServerTimestampBehavior stb) const {
133
136
switch (scalar.which_value_type ) {
134
- case google_firestore_v1_Value_map_value_tag:
135
- if (IsServerTimestamp (scalar)) {
136
- return ConvertServerTimestamp (scalar, stb);
137
- }
137
+ case google_firestore_v1_Value_null_value_tag:
138
138
return FieldValue::Null ();
139
139
case google_firestore_v1_Value_boolean_value_tag:
140
140
return FieldValue::Boolean (scalar.boolean_value );
You can’t perform that action at this time.
0 commit comments