summaryrefslogtreecommitdiff
path: root/users/app/designs/user/by_email_alias.js
blob: 508a002cce4f098350e867f053815070e1ef81a7 (plain)
1
2
3
4
5
6
7
8
function(doc) {
  if (doc.type != 'User') {
    return;
  }
  doc.email_aliases.forEach(function(alias){
    emit(alias.email, 1);
  });
}