diff options
author | Azul <azul@riseup.net> | 2013-11-19 15:15:59 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-11-21 11:31:53 +0100 |
commit | 1ada62ad64b9664783de875820242fc404f967f2 (patch) | |
tree | 4babb699cf469c42eed41ae1bec30f34427eda95 /puppet/modules/site_couchdb/files/designs/tokens/Token.json | |
parent | 8dd6174fe2077a94c8ede027a8364d7ff3372f3d (diff) |
initial design documents from the webapp (#3770)
Diffstat (limited to 'puppet/modules/site_couchdb/files/designs/tokens/Token.json')
-rw-r--r-- | puppet/modules/site_couchdb/files/designs/tokens/Token.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/files/designs/tokens/Token.json b/puppet/modules/site_couchdb/files/designs/tokens/Token.json new file mode 100644 index 00000000..b9025f15 --- /dev/null +++ b/puppet/modules/site_couchdb/files/designs/tokens/Token.json @@ -0,0 +1,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" +}
\ No newline at end of file |