summaryrefslogtreecommitdiff
path: root/users/app/designs/user
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-01-07 09:33:11 +0100
committerAzul <azul@leap.se>2014-01-07 09:33:11 +0100
commit6b36baab9f82e022b09e6bdbe071860a8075badf (patch)
tree11fe6467dc3c276db9e76ecedbfbf4534c7956b8 /users/app/designs/user
parentb9de6cfeac4ef061f3110afa0be959e41cb6f885 (diff)
remove outdated views that cause errors
The datastructure changes to that email_aliases is not available on the user record anymore. Keeping these views leads to errors on couch servers.
Diffstat (limited to 'users/app/designs/user')
-rw-r--r--users/app/designs/user/by_alias.js8
-rw-r--r--users/app/designs/user/by_login_or_alias.js9
2 files changed, 0 insertions, 17 deletions
diff --git a/users/app/designs/user/by_alias.js b/users/app/designs/user/by_alias.js
deleted file mode 100644
index dc8021a..0000000
--- a/users/app/designs/user/by_alias.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function(doc) {
- if (doc.type != 'User') {
- return;
- }
- doc.email_aliases.forEach(function(alias){
- emit(alias.username, 1);
- });
-}
diff --git a/users/app/designs/user/by_login_or_alias.js b/users/app/designs/user/by_login_or_alias.js
deleted file mode 100644
index 2d2096c..0000000
--- a/users/app/designs/user/by_login_or_alias.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function(doc) {
- if (doc.type != 'User') {
- return;
- }
- emit(doc.login, 1);
- doc.email_aliases.forEach(function(alias){
- emit(alias.username, 1);
- });
-}