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

Add view for finding inactive session lists for guests

This view lists loggedin documents for guests indexed by timestamp.
parent 908fb579
1 merge request!9Add view for finding inactive session lists for guests
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -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