mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[android] Fix database limit type conversion
This commit is contained in:
@@ -213,7 +213,7 @@ public class RNFirebaseDatabaseReference {
|
||||
query = query.orderByChild(key);
|
||||
}
|
||||
} else if ("limit".equals(type)) {
|
||||
int limit = (Integer) modifier.get("limit");
|
||||
int limit = ((Double)modifier.get("limit")).intValue();
|
||||
if ("limitToLast".equals(name)) {
|
||||
query = query.limitToLast(limit);
|
||||
} else if ("limitToFirst".equals(name)) {
|
||||
|
||||
Reference in New Issue
Block a user