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

Merge branch 'visitedsessions-by-last-activity-for-guests' into 'master'

Add view for finding inactive session lists for guests

This view lists loggedin documents for guests indexed by timestamp.

See merge request !9
parents 908fb579 4f260606
Branches
Tags
1 merge request!9Add view for finding inactive session lists for guests
......@@ -7,6 +7,9 @@
},
"visited_sessions_by_user": {
"map": "function(doc) { if(doc.type == 'logged_in') { emit(doc.user, doc.visitedSessions); }}"
},
"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