Skip to content
Snippets Groups Projects

Delete inactive users

Merged Daniel Gerhardt requested to merge deleteInactiveUsers into master
Compare and
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -8,6 +8,9 @@
@@ -8,6 +8,9 @@
"visited_sessions_by_user": {
"visited_sessions_by_user": {
"map": "function(doc) { if(doc.type == 'logged_in') { emit(doc.user, doc.visitedSessions); }}"
"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": {
"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}"
"map": "function(doc) {\n if (doc.type == 'logged_in' && doc.user.indexOf('Guest') === 0) {\n emit(doc.timestamp || 0, {_rev: doc._rev});\n }\n}"
}
}