|
|
@@ -272,9 +272,10 @@ export class BankClient {
|
|
|
if (!existing) {
|
|
|
throw new Error('missing contact with id ' + contactId);
|
|
|
}
|
|
|
+ const existingData = existing.getData();
|
|
|
const newProps: any = mergeDeep({}, newProperties);
|
|
|
delete newProps.id;
|
|
|
- const newItem: any = mergeDeep(existing, newProps);
|
|
|
+ const newItem: any = mergeDeep(existingData, newProps);
|
|
|
delete newItem.hash;
|
|
|
const newItemHash = await this.uploadSlimJSON(newItem);
|
|
|
await this.appendPrivate(peerId, '📇', newItemHash, existing.hash);
|