Skip to content

Instantly share code, notes, and snippets.

@LordSputnik
Created December 11, 2016 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LordSputnik/8c78a41515f45f426fbbc92947068aa4 to your computer and use it in GitHub Desktop.
Save LordSputnik/8c78a41515f45f426fbbc92947068aa4 to your computer and use it in GitHub Desktop.
Area Indexing Code
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