From 09b10e38458fcfdb66126519540d379e193b471e Mon Sep 17 00:00:00 2001 From: "Charles E. Lehner" Date: Tue, 1 Mar 2022 23:49:19 -0500 Subject: [PATCH] Update comments for updated spec --- resolver.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/resolver.js b/resolver.js index 631d14a..818000c 100644 --- a/resolver.js +++ b/resolver.js @@ -190,10 +190,6 @@ Resolver.prototype.resolveOrResolveRepresentation = function (did, resolutionOpt if (nextUpdate) didDocumentMetadata.nextUpdate = nextUpdate; } // 10 - // TODO: update spec: updated should not be set for initial update (Create) operation - // const updated = didDocumentMetadata.updated = timestampToDateTime(msg.value.timestamp); - // if (updated) didDocumentMetadata.updated = updated; - // 11 pull( self.sbot.query.read({ reverse: false, @@ -217,11 +213,11 @@ Resolver.prototype.resolveOrResolveRepresentation = function (did, resolutionOpt } function gotFirstMessage() { if (!firstMsg) return cb({error: 'ssbMessageMissing'}, Null, {}); - // 12 + // 11 const created = didDocumentMetadata.created = timestampToDateTime(firstMsg.value.timestamp); if (created) didDocumentMetadata.created = created; + // 12 if (firstMsg.key !== msg.key) { - // TODO: update spec const updated = didDocumentMetadata.updated = timestampToDateTime(msg.value.timestamp); if (updated) didDocumentMetadata.updated = updated; }