blob: 95ccd0dc4a208d4eb5cfcbb829b804ab58d1e08c (
plain)
1
2
3
4
5
6
7
|
function (doc) {
if (doc.type === 'Message' && doc.user_ids_to_show && Array.isArray(doc.user_ids_to_show)) {
doc.user_ids_to_show.forEach(function (userIdsToShow) {
emit(userIdsToShow, 1);
});
}
}
|