File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2
2
# Parse-Swift Changelog
3
3
4
4
### main
5
- [ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.9.1 ...main ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift )
5
+ [ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.9.2 ...main ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/main/documentation/parseswift )
6
6
* _ Contributing to this repo? Add info about your change here to be included in the next release_
7
7
8
8
9
+ ### 5.9.2
10
+ [ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.9.1...5.9.2 ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/5.9.2/documentation/parseswift )
11
+
12
+ __ Fixes__
13
+ * Querying using findAll may be inacurrate when results are greater than the batch limit ([ #161 ] ( https://github.com/netreconlab/Parse-Swift/pull/161 ) ), thanks to [ Corey Baker] ( https://github.com/cbaker6 ) .
14
+
9
15
### 5.9.1
10
16
[ Full Changelog] ( https://github.com/netreconlab/Parse-Swift/compare/5.9.0...5.9.1 ) , [ Documentation] ( https://swiftpackageindex.com/netreconlab/Parse-Swift/5.9.1/documentation/parseswift )
11
17
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Foundation
10
10
11
11
enum ParseConstants {
12
12
static let sdk = " swift "
13
- static let version = " 5.9.1 "
13
+ static let version = " 5.9.2 "
14
14
static let fileManagementDirectory = " parse/ "
15
15
static let fileManagementPrivateDocumentsDirectory = " Private Documents/ "
16
16
static let fileManagementLibraryDirectory = " Library/ "
Original file line number Diff line number Diff line change @@ -584,6 +584,7 @@ extension Query: Queryable {
584
584
var query = self
585
585
. order ( [ . ascending( " objectId " ) ] )
586
586
query. limit = limit ?? ParseConstants . batchLimit
587
+ let originalQueryWhere = query. where
587
588
var results = [ ResultType] ( )
588
589
var finished = false
589
590
while !finished {
@@ -593,8 +594,9 @@ extension Query: Queryable {
593
594
results. append ( contentsOf: currentResults)
594
595
if currentResults. count >= query. limit {
595
596
guard let lastObjectId = results [ results. count - 1 ] . objectId else {
596
- throw ParseError ( code: . otherCause, message: " Last object should have an id . " )
597
+ throw ParseError ( code: . otherCause, message: " Last object should have an objectId . " )
597
598
}
599
+ query. where = originalQueryWhere
598
600
query. where. add ( " objectId " > lastObjectId)
599
601
} else {
600
602
finished = true
You can’t perform that action at this time.
0 commit comments