summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/files/designs/tokens/Token.json
blob: b9025f15e1a8972f000b5c5b41b9ea1751477a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "_id": "_design/Token",
  "language": "javascript",
  "views": {
    "by_last_seen_at": {
      "map": "                function(doc) {\n                  if ((doc['type'] == 'Token') && (doc['last_seen_at'] != null)) {\n                    emit(doc['last_seen_at'], 1);\n                  }\n                }\n",
      "reduce": "_sum"
    },
    "all": {
      "map": "                function(doc) {\n                  if (doc['type'] == 'Token') {\n                    emit(doc._id, null);\n                  }\n                }\n"
    }
  },
  "couchrest-hash": "541dd924551c42a2317b345effbe65cc"
}