summaryrefslogtreecommitdiff
path: root/users/app/designs/user
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-01-06 09:48:18 -0800
committerazul <azul@riseup.net>2013-01-06 09:48:18 -0800
commitbb4a9babebfe6144464df8d305cfd77f3e22ae7d (patch)
treef3e1f489a1ab73b525847e43096c46ebf9f2721f /users/app/designs/user
parentd2acd205b3c3f0931ce4c453e67b1ba572ec77e9 (diff)
parentfbb8c7b654a05bc2983a476df9a5b9c376096f41 (diff)
Merge pull request #13 from leapcode/feature/views_for_postfix
views only emit 1 as value now, doc can be included
Diffstat (limited to 'users/app/designs/user')
-rw-r--r--users/app/designs/user/by_email_alias.js2
-rw-r--r--users/app/designs/user/by_email_or_alias.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/users/app/designs/user/by_email_alias.js b/users/app/designs/user/by_email_alias.js
index 51eb976..508a002 100644
--- a/users/app/designs/user/by_email_alias.js
+++ b/users/app/designs/user/by_email_alias.js
@@ -3,6 +3,6 @@ function(doc) {
return;
}
doc.email_aliases.forEach(function(alias){
- emit(alias.email, doc);
+ emit(alias.email, 1);
});
}
diff --git a/users/app/designs/user/by_email_or_alias.js b/users/app/designs/user/by_email_or_alias.js
index 2f1e569..71fd0ea 100644
--- a/users/app/designs/user/by_email_or_alias.js
+++ b/users/app/designs/user/by_email_or_alias.js
@@ -3,9 +3,9 @@ function(doc) {
return;
}
if (doc.email) {
- emit(doc.email, doc);
+ emit(doc.email, 1);
}
doc.email_aliases.forEach(function(alias){
- emit(alias.email, doc);
+ emit(alias.email, 1);
});
}