Skip to content

Commit 1fd9e1c

Browse files
use correct methods for startAt, endBefore and endAt
1 parent 2406944 commit 1fd9e1c

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ fun Query.orderBy(field: FieldPath, direction: Direction = Direction.ASCENDING)
9494

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

100-
fun Query.endBefore(document: DocumentSnapshot) = _startAfter(document)
101-
fun Query.endBefore(vararg fieldValues: Any) = _startAfter(fieldValues)
102-
fun Query.endAt(document: DocumentSnapshot) = _startAfter(document)
103-
fun Query.endAt(vararg fieldValues: Any) = _startAfter(fieldValues)
100+
fun Query.endBefore(document: DocumentSnapshot) = _endBefore(document)
101+
fun Query.endBefore(vararg fieldValues: Any) = _endBefore(fieldValues)
102+
fun Query.endAt(document: DocumentSnapshot) = _endAt(document)
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

0 commit comments

Comments
 (0)