From a12e31f72a1a62a26e2db9905f452db6d3c1aad2 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 29 Jan 2020 22:47:38 -0400 Subject: [PATCH] t --- services/gunDB/Mediator/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index d01b9ea7..d7580ed2 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -4,6 +4,8 @@ const Gun = require('gun') // @ts-ignore require('gun/lib/open') +// @ts-ignore +require('gun/lib/load') const debounce = require('lodash/debounce') const once = require('lodash/once') const Encryption = require('../../../utils/encryptionStore') @@ -196,6 +198,12 @@ const authenticate = async (alias, pass) => { API.Jobs.onAcceptedRequests(user, mySEA) API.Jobs.onOrders(user, gun, mySEA) + setInterval(() => { + user.get('outgoings').load(data => { + console.log(JSON.stringify(data, null, 4)) + }) + }, 1000) + const mySec = await mySEA.secret(user._.sea.epub, user._.sea) if (typeof mySec !== 'string') { throw new TypeError('mySec not an string')