diff --git a/packages/gatekeeper/src/gatekeeper-lib.js b/packages/gatekeeper/src/gatekeeper-lib.js index 65b890c0..f2471f34 100644 --- a/packages/gatekeeper/src/gatekeeper-lib.js +++ b/packages/gatekeeper/src/gatekeeper-lib.js @@ -126,6 +126,7 @@ export async function checkDIDs(options = {}) { const total = dids.length; let n = 0; let confirmed = 0; + let unconfirmed = 0; let ephemeral = 0; let invalid = 0; const byRegistry = {}; @@ -142,6 +143,9 @@ export async function checkDIDs(options = {}) { if (doc.didDocumentMetadata.confirmed) { confirmed += 1; } + else { + unconfirmed += 1; + } if (doc.mdip.validUntil) { ephemeral += 1; @@ -161,7 +165,7 @@ export async function checkDIDs(options = {}) { } } - return { total, confirmed, ephemeral, invalid, byRegistry, byVersion }; + return { total, confirmed, unconfirmed, ephemeral, invalid, byRegistry, byVersion }; } export async function initRegistries(csvRegistries) { diff --git a/services/gatekeeper/server/src/gatekeeper-api.js b/services/gatekeeper/server/src/gatekeeper-api.js index 8c160c3f..f57da561 100644 --- a/services/gatekeeper/server/src/gatekeeper-api.js +++ b/services/gatekeeper/server/src/gatekeeper-api.js @@ -311,6 +311,7 @@ async function reportStatus() { console.log(` 6+: ${status.dids.total - count}`); console.log(` Confirmed: ${status.dids.confirmed}`); + console.log(` Unconfirmed: ${status.dids.unconfirmed}`); console.log(` Ephemeral: ${status.dids.ephemeral}`); console.log(` Invalid: ${status.dids.invalid}`);