Skip to content

Instantly share code, notes, and snippets.

@scalabilitysolved
Created February 23, 2014 18:13
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 scalabilitysolved/9175031 to your computer and use it in GitHub Desktop.
Save scalabilitysolved/9175031 to your computer and use it in GitHub Desktop.
function (doc, meta) {
if(meta.type == 'json') {
if(doc.doc_type == "offers_collected" && doc.date) {
emit(dateToArray(doc.date));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment