user hace 6 años
padre
commit
f4eb4356aa
Se han modificado 3 ficheros con 3 adiciones y 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);

La diferencia del archivo ha sido suprimido porque es 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);