File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
firebase-firestore/src/commonTest/kotlin/dev/gitlive/firebase/firestore Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,13 @@ class WriteBatchTest : BaseFirebaseFirestoreTest() {
167
167
)
168
168
169
169
val batch = firestore.batch()
170
- batch.update (doc1) {
170
+ batch.updateFields (doc1) {
171
171
FirestoreTest ::prop1.name to " prop1-updated"
172
172
FieldPath (FirestoreTest ::optional.name) to " notNull"
173
173
FirestoreTest ::duration.name.to(DurationAsIntSerializer (), 300 .milliseconds)
174
174
FieldPath (FirestoreTest ::nested.name).to(NestedObject .serializer(), NestedObject (" nested" ))
175
175
}
176
- batch.update (doc2) {
176
+ batch.updateFields (doc2) {
177
177
FirestoreTest ::prop1.name to " prop2-updated"
178
178
FieldPath (FirestoreTest ::optional.name) to " alsoNotNull"
179
179
FirestoreTest ::duration.name.to(DurationAsIntSerializer (), 200 .milliseconds)
You can’t perform that action at this time.
0 commit comments