[firestore][ios] Correctly apply integer limit

This commit is contained in:
Chris Bianca 2017-10-31 14:29:23 +00:00
parent 36c936779b
commit d8fd09adef
1 changed files with 1 additions and 1 deletions

View File

@ -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