From 6e6cb9b479462b8ee9a64f219c808446f43420af Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 3 Jun 2020 15:54:51 -0400 Subject: [PATCH] explicitness --- services/gunDB/contact-api/actions.js | 2 +- src/routes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index 6522e6fa..e13d8989 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -1223,7 +1223,7 @@ const setLastSeenApp = () => * @param {boolean} isPrivate * @returns {Promise} */ -const follow = (publicKey, isPrivate = false) => { +const follow = (publicKey, isPrivate) => { /** @type {import('shock-common').Schema.Follow} */ const newFollow = { private: isPrivate, diff --git a/src/routes.js b/src/routes.js index a9251e51..3a041d8e 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1873,7 +1873,7 @@ module.exports = async ( throw new Error(`Missing publicKey route param.`) } - await GunActions.follow(req.params.publicKey, req.body.private || false) + await GunActions.follow(req.params.publicKey, false) // 201 would be extraneous here return res.status(200)