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

Merge branch 'deleteInactiveUsers' into 'master'

Delete inactive users

See merge request !10
parents 869ed525 602552d4
1 merge request!10Delete inactive users
......@@ -8,6 +8,9 @@
"visited_sessions_by_user": {
"map": "function(doc) { if(doc.type == 'logged_in') { emit(doc.user, doc.visitedSessions); }}"
},
"by_last_activity": {
"map": "function(doc) {\n if (doc.type == 'logged_in' && !doc.anonymized) {\n emit(doc.timestamp || 0, null);\n }\n}"
},
"by_last_activity_for_guests": {
"map": "function(doc) {\n if (doc.type == 'logged_in' && doc.user.indexOf('Guest') === 0) {\n emit(doc.timestamp || 0, {_rev: doc._rev});\n }\n}"
}
......
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