Skip to content

Commit

Permalink
[firestore][ios] Correctly apply integer limit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbianca committed Oct 31, 2017
1 parent 36c9367 commit d8fd09a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ - (FIRQuery *)applyOptions:(FIRQuery *) query {
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
Expand Down

0 comments on commit d8fd09a

Please sign in to comment.