mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-26 23:05:11 +08:00
[firestore][ios] Correctly apply integer limit
This commit is contained in:
@@ -129,7 +129,7 @@ queryListenOptions:(NSDictionary *) queryListenOptions {
|
||||
query = [query queryEndingBeforeValues:_options[@"endBefore"]];
|
||||
}
|
||||
if (_options[@"limit"]) {
|
||||
query = [query queryLimitedTo:_options[@"limit"]];
|
||||
query = [query queryLimitedTo:[_options[@"limit"] intValue]];
|
||||
}
|
||||
if (_options[@"offset"]) {
|
||||
// iOS doesn't support offset
|
||||
|
||||
Reference in New Issue
Block a user