diff --git a/utils/GunSmith/GunSmith.js b/utils/GunSmith/GunSmith.js index bac7b276..087c032e 100644 --- a/utils/GunSmith/GunSmith.js +++ b/utils/GunSmith/GunSmith.js @@ -136,7 +136,7 @@ const auth = (alias, pass) => lastAlias = alias lastPass = pass lastPair = ack.sea - processPendingPutsFromLastGun(currentGun) + flushPendingPuts() res(ack.sea) } else { rej(new Error('Auth: ack.sea undefined')) @@ -158,9 +158,7 @@ const autoAuth = () => { return auth(lastAlias, lastPass) } -const processPendingPutsFromLastGun = async (forGun, pps = pendingPuts) => { - // TODO -} +const flushPendingPuts = () => {} const forge = () => { if (currentGun) { diff --git a/utils/GunSmith/gun.js b/utils/GunSmith/gun.js index 14d86ace..c71c0f2b 100644 --- a/utils/GunSmith/gun.js +++ b/utils/GunSmith/gun.js @@ -92,7 +92,6 @@ const handleMsg = msg => { }) } if (msg.type === 'load') { - const { id, path } = msg const [root, ...keys] = msg.path.split('>') /** @type {GunT.GUNNode} */ @@ -109,7 +108,7 @@ const handleMsg = msg => { /** @type {Smith.GunMsgLoad} */ const res = { data, - id, + id: msg.id, key, type: 'load' }