Skip to content

Commit 3eb94e6

Browse files
nbransbyReedyuk
andauthored
Update firestore.kt (#55)
Co-authored-by: Andrew Reed <[email protected]>
1 parent a43024f commit 3eb94e6

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
@@ -185,7 +185,7 @@ actual open class Query(open val ios: FIRQuery) {
185185

186186
actual suspend fun get() = QuerySnapshot(awaitResult { ios.getDocumentsWithCompletion(it) })
187187

188-
actual fun limit(limit: Number) = Query(ios.queryLimitedTo(limit.toInt()))
188+
actual fun limit(limit: Number) = Query(ios.queryLimitedTo(limit.toLong()))
189189

190190
actual val snapshots get() = callbackFlow {
191191
val listener = ios.addSnapshotListener { snapshot, error ->

0 commit comments

Comments
 (0)