explicitness
This commit is contained in:
parent
f70fc2a0ab
commit
6e6cb9b479
2 changed files with 2 additions and 2 deletions
|
|
@ -1223,7 +1223,7 @@ const setLastSeenApp = () =>
|
||||||
* @param {boolean} isPrivate
|
* @param {boolean} isPrivate
|
||||||
* @returns {Promise<string>}
|
* @returns {Promise<string>}
|
||||||
*/
|
*/
|
||||||
const follow = (publicKey, isPrivate = false) => {
|
const follow = (publicKey, isPrivate) => {
|
||||||
/** @type {import('shock-common').Schema.Follow} */
|
/** @type {import('shock-common').Schema.Follow} */
|
||||||
const newFollow = {
|
const newFollow = {
|
||||||
private: isPrivate,
|
private: isPrivate,
|
||||||
|
|
|
||||||
|
|
@ -1873,7 +1873,7 @@ module.exports = async (
|
||||||
throw new Error(`Missing publicKey route param.`)
|
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
|
// 201 would be extraneous here
|
||||||
return res.status(200)
|
return res.status(200)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue