user %!s(int64=6) %!d(string=hai) anos
pai
achega
f4eb4356aa
Modificáronse 3 ficheiros con 3 adicións e 1 borrados
  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);

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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);