diff options
author | Azul <azul@riseup.net> | 2018-01-31 09:58:37 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2018-01-31 09:58:37 +0100 |
commit | 0a83272f33b0731ea61e47aec9019a3afeb3e975 (patch) | |
tree | c1beb250745c43c2fb7486202a9f6dfb097a56e2 /app | |
parent | 54653f75cf44890310a06c3a8a6be59625629d2a (diff) |
couch: add identity view to get all keys
This needs to be included in the platforms views.
Diffstat (limited to 'app')
-rw-r--r-- | app/designs/identity/keys_by_email.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/designs/identity/keys_by_email.js b/app/designs/identity/keys_by_email.js new file mode 100644 index 0000000..c81ac2f --- /dev/null +++ b/app/designs/identity/keys_by_email.js @@ -0,0 +1,8 @@ +function(doc) { + if (doc.type != 'Identity') { + return; + } + if (typeof doc.keys === "object") { + emit(doc.address, doc.keys); + } +} |