Skip to content

Commit 17880b8

Browse files
fix bug causing array to get sent through instead of vararg
1 parent b56885e commit 17880b8

File tree

2 files changed

+6
-6
lines changed
  • firebase-firestore/src

2 files changed

+6
-6
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ fun Query.orderBy(field: String, direction: Direction = Direction.ASCENDING) = _
9393
fun Query.orderBy(field: FieldPath, direction: Direction = Direction.ASCENDING) = _orderBy(field, direction)
9494

9595
fun Query.startAfter(document: DocumentSnapshot) = _startAfter(document)
96-
fun Query.startAfter(vararg fieldValues: Any) = _startAfter(fieldValues)
96+
fun Query.startAfter(vararg fieldValues: Any) = _startAfter(*fieldValues)
9797
fun Query.startAt(document: DocumentSnapshot) = _startAt(document)
98-
fun Query.startAt(vararg fieldValues: Any) = _startAt(fieldValues)
98+
fun Query.startAt(vararg fieldValues: Any) = _startAt(*fieldValues)
9999

100100
fun Query.endBefore(document: DocumentSnapshot) = _endBefore(document)
101-
fun Query.endBefore(vararg fieldValues: Any) = _endBefore(fieldValues)
101+
fun Query.endBefore(vararg fieldValues: Any) = _endBefore(*fieldValues)
102102
fun Query.endAt(document: DocumentSnapshot) = _endAt(document)
103-
fun Query.endAt(vararg fieldValues: Any) = _endAt(fieldValues)
103+
fun Query.endAt(vararg fieldValues: Any) = _endAt(*fieldValues)
104104

105105
expect class WriteBatch {
106106
inline fun <reified T> set(documentRef: DocumentReference, data: T, encodeDefaults: Boolean = true, merge: Boolean = false): WriteBatch

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ actual open class Query(open val js: firebase.firestore.Query) {
334334

335335
internal actual fun _startAfter(document: DocumentSnapshot) = rethrow { Query(js.startAfter(document.js)) }
336336

337-
internal actual fun _startAfter(fieldValues: List<Any>) = rethrow { Query(js.startAfter(*fieldValues.toTypedArray())) }
337+
internal actual fun _startAfter(vararg fieldValues: Any) = rethrow { Query(js.startAfter(*fieldValues)) }
338338

339339
internal actual fun _startAt(document: DocumentSnapshot) = rethrow { Query(js.startAt(document.js)) }
340340

341-
internal actual fun _startAt(fieldValues: List<Any>) = rethrow { Query(js.startAt(*fieldValues.toTypedArray())) }
341+
internal actual fun _startAt(vararg fieldValues: Any) = rethrow { Query(js.startAt(*fieldValues)) }
342342

343343
internal actual fun _endBefore(document: DocumentSnapshot) = rethrow { Query(js.endBefore(document.js)) }
344344

0 commit comments

Comments
 (0)