explicitness

This commit is contained in:
Daniel Lugo 2020-06-03 15:54:51 -04:00
parent f70fc2a0ab
commit 6e6cb9b479
2 changed files with 2 additions and 2 deletions

View file

@ -1223,7 +1223,7 @@ const setLastSeenApp = () =>
* @param {boolean} isPrivate
* @returns {Promise<string>}
*/
const follow = (publicKey, isPrivate = false) => {
const follow = (publicKey, isPrivate) => {
/** @type {import('shock-common').Schema.Follow} */
const newFollow = {
private: isPrivate,

View file

@ -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)