Skip to content

Commit 8daa5ea

Browse files
authored
Merge pull request #174 from jfreeley/fix-array-remove-ios
Fix FieldValue.arrayRemove on iOS
2 parents 7733c7c + 689cb00 commit 8daa5ea

File tree

1 file changed

+1
-1
lines changed
  • firebase-firestore/src/iosMain/kotlin/dev/gitlive/firebase/firestore

1 file changed

+1
-1
lines changed

firebase-firestore/src/iosMain/kotlin/dev/gitlive/firebase/firestore/firestore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ actual object FieldValue {
402402
actual val serverTimestamp = Double.POSITIVE_INFINITY
403403
actual val delete: Any get() = FIRFieldValue.fieldValueForDelete()
404404
actual fun arrayUnion(vararg elements: Any): Any = FIRFieldValue.fieldValueForArrayUnion(elements.asList())
405-
actual fun arrayRemove(vararg elements: Any): Any = FIRFieldValue.fieldValueForArrayUnion(elements.asList())
405+
actual fun arrayRemove(vararg elements: Any): Any = FIRFieldValue.fieldValueForArrayRemove(elements.asList())
406406
actual fun delete(): Any = delete
407407
}
408408

0 commit comments

Comments
 (0)