Last active
August 2, 2017 02:25
-
-
Save mshk/7d4d9c0e5ff4c4847f4995c3dfb23fe6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin.database().ref("/sites") | |
.orderByChild('user_count') | |
.startAt(3) | |
.limitToLast(20) | |
.once('value') | |
.then((snapshot) => { | |
let sites = snapshots.val() | |
if (sites == null) { return } | |
for (let site_key in sites) { | |
let site = sites[site_key] | |
... | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment