Skip to content
Snippets Groups Projects
Commit c65f1370 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch 'users-inactive-by-creation' into cleanup-view-test

parents 5ab1872d e0795016
No related merge requests found
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
"views":{ "views":{
"all":{ "all":{
"map":"function(doc) { if (doc.type == 'userdetails') emit(doc.username, doc); }" "map":"function(doc) { if (doc.type == 'userdetails') emit(doc.username, doc); }"
},
"inactive_by_creation": {
"map": "function(doc) {\n if (doc.type == 'userdetails' && doc.activationKey) {\n emit(doc.creation, {_rev: doc._rev});\n }\n}"
} }
} }
} }
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment