summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/files/designs/identities
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-01-07 12:02:05 +0100
committerAzul <azul@riseup.net>2014-01-09 08:58:24 +0100
commit7fbad48e98cb49367041b22f7c94a8d0e001db33 (patch)
tree7e58c2855353864e6320fd54c3da13504c38a620 /puppet/modules/site_couchdb/files/designs/identities
parentfe1561855cd7be38190d54913f84bae5ab3c9a4a (diff)
fix function issues in webapp design documents
This change is a result of https://github.com/leapcode/leap_web/pull/133. Both should be deployed at the same time to prevent conflicts.
Diffstat (limited to 'puppet/modules/site_couchdb/files/designs/identities')
-rw-r--r--puppet/modules/site_couchdb/files/designs/identities/Identity.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/puppet/modules/site_couchdb/files/designs/identities/Identity.json b/puppet/modules/site_couchdb/files/designs/identities/Identity.json
index 8cf8c39b..2ac092ab 100644
--- a/puppet/modules/site_couchdb/files/designs/identities/Identity.json
+++ b/puppet/modules/site_couchdb/files/designs/identities/Identity.json
@@ -15,7 +15,7 @@
"reduce": "_sum"
},
"pgp_key_by_email": {
- "map": " function(doc) {\n if (doc.type != 'Identity') {\n return;\n }\n emit(doc.address, doc.keys[\"pgp\"]);\n }\n"
+ "map": " function(doc) {\n if (doc.type != 'Identity') {\n return;\n }\n if (typeof doc.keys === \"object\") {\n emit(doc.address, doc.keys[\"pgp\"]);\n }\n }\n"
},
"disabled": {
"map": " function(doc) {\n if (doc.type != 'Identity') {\n return;\n }\n if (typeof doc.user_id === \"undefined\") {\n emit(doc._id, 1);\n }\n }\n"
@@ -24,5 +24,5 @@
"map": " function(doc) {\n if (doc['type'] == 'Identity') {\n emit(doc._id, null);\n }\n }\n"
}
},
- "couchrest-hash": "5b0ece9d28b3025d18ea71fddf3a532f"
+ "couchrest-hash": "e9004d70e26770c621a9667536429a68"
} \ No newline at end of file