fix: on existing entry, need to update the entry data
This commit is contained in:
parent
c61f2f6127
commit
389a15eef4
|
@ -163,11 +163,13 @@ export async function createEntry(
|
|||
}
|
||||
|
||||
if (existing) {
|
||||
if (equalBytes(entry.data, cid.toRegistryEntry())) {
|
||||
const newEntry = cid.toRegistryEntry();
|
||||
if (equalBytes(entry.data, newEntry)) {
|
||||
return entry;
|
||||
}
|
||||
|
||||
entry.revision++;
|
||||
entry.data = newEntry;
|
||||
}
|
||||
const signedEntry = signRegistryEntry({
|
||||
kp: sk,
|
||||
|
|
Loading…
Reference in New Issue