From 3dcd0f735eace993b937200ae894b39b4a31d42a Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 17 Jan 2022 13:28:01 -0400 Subject: [PATCH] gun.load() is no longer used --- src/routes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes.js b/src/routes.js index e2e5d4c0..4899cb3e 100644 --- a/src/routes.js +++ b/src/routes.js @@ -2251,7 +2251,6 @@ module.exports = async ( } if (type === 'once') node.once(listener) - if (type === 'load') node.load(listener) if (type === 'specialOnce') node.specialOnce(listener) }) } @@ -2411,7 +2410,7 @@ module.exports = async ( ap.get('/api/gun/otheruser/:publicKey/:type/:path', async (req, res) => { try { - const allowedTypes = ['once', 'load', 'open', 'specialOnce'] + const allowedTypes = ['once', 'open', 'specialOnce'] const publicKeyForDecryption = req.header(PUBKEY_FOR_DECRYPT_HEADER) const epubForDecryption = req.header(EPUB_FOR_DECRYPT_HEADER) const { path /*:rawPath*/, publicKey, type } = req.params