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

Add view for finding inactive guest sessions

parent 7d7ffbc6
1 merge request!8Add view for finding inactive guest sessions
......@@ -14,6 +14,9 @@
"by_courseid":{
"map":"function(doc) { if(doc.type == 'session' && doc.courseId && doc.sessionType != 'public_pool') emit(doc.courseId, doc); }"
},
"by_last_activity_for_guests": {
"map":"function(doc) {\n if (doc.type === 'session' && doc.sessionType !== 'public_pool' && doc.creator.indexOf('Guest') === 0) {\n emit(doc.lastOwnerActivity || doc.creationTime, {_rev: doc._rev});\n }\n}"
},
"public_pool_by_subject":{
"map":"function(doc) { if(doc.sessionType == 'public_pool') emit([doc.ppSubject, doc.name], {ppSubject: doc.ppSubject,name: doc.name, keyword: doc.keyword, ppLevel: doc.ppLevel}); }"
},
......
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