This commit is contained in:
Karol Wypchlo 2020-09-11 11:29:08 +02:00
parent a4ae722f44
commit cd051c45f2
1 changed files with 1 additions and 1 deletions

View File

@ -1047,7 +1047,7 @@ function skylinkVerification(done, { name, skylink, bodyHash, metadata }) {
const currentMetadata = metadataHeader && JSON.parse(metadataHeader);
if (!isEqual(currentMetadata, metadata)) {
entry.up = false;
info.metadata = detailedDiff(currentMetadata, metadata);
info.metadata = detailedDiff(metadata, currentMetadata);
}
if (Object.keys(info).length) entry.info = info; // add info only if it exists