user 6 years ago
parent
commit
f4eb4356aa
3 changed files with 3 additions and 1 deletions
  1. 1 0
      lib/index.js
  2. 1 1
      lib/index.js.map
  3. 1 0
      src/index.ts

+ 1 - 0
lib/index.js

@@ -286,6 +286,7 @@ class BankClient {
             delete newProps.id;
             const newItem = util_1.mergeDeep(existingData, newProps);
             delete newItem.hash;
+            newItem.lastChanged = new Date().toLocaleString();
             const newItemHash = yield this.uploadSlimJSON(newItem);
             yield this.appendPrivate(peerId, '📇', newItemHash, existing.hash);
             const contactBook2 = yield this.getContactBook(peerId);

File diff suppressed because it is too large
+ 1 - 1
lib/index.js.map


+ 1 - 0
src/index.ts

@@ -277,6 +277,7 @@ export class BankClient {
       delete newProps.id;
       const newItem: any = mergeDeep(existingData, newProps);
       delete newItem.hash;
+      newItem.lastChanged = new Date().toLocaleString();
       const newItemHash = await this.uploadSlimJSON(newItem);
       await this.appendPrivate(peerId, '📇', newItemHash, existing.hash);
       const contactBook2 = await this.getContactBook(peerId);