summaryrefslogtreecommitdiff
path: root/app/designs/identity/cert_expiry_by_fingerprint.js
blob: 0636da57aeb527c3c1aa81eb607f42f7e823e4ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function(doc) {
  if (doc.type != 'Identity') {
    return;
  }
  if (typeof doc.cert_fingerprints === "object") {
    for (fp in doc.cert_fingerprints) {
      if (doc.cert_fingerprints.hasOwnProperty(fp)) {
        emit(fp, doc.cert_fingerprints[fp]);
      }
    }
  }
}