Skip to content

Commit 129257a

Browse files
committed
fix whereEqualTo
1 parent c57b201 commit 129257a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private val Any.value get() = when (this) {
8888
else -> this
8989
}
9090

91-
fun Query.where(field: String, equalTo: Any?) = _where(field, equalTo,value)
91+
fun Query.where(field: String, equalTo: Any?) = _where(field, equalTo?.value)
9292
fun Query.where(path: FieldPath, equalTo: Any?) = _where(path, equalTo?.value)
9393
fun Query.where(field: String, equalTo: DocumentReference) = _where(field, equalTo.value)
9494
fun Query.where(path: FieldPath, equalTo: DocumentReference) = _where(path, equalTo.value)

0 commit comments

Comments
 (0)