Created
December 11, 2016 01:21
-
-
Save LordSputnik/8c78a41515f45f426fbbc92947068aa4 to your computer and use it in GitHub Desktop.
Area Indexing Code
This file contains hidden or 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
Area.forge() | |
.where({type: 1}) | |
.fetchAll() | |
.then((collection) => collection.toJSON()) | |
.map(search.indexArea) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment