Response does not need to be returned
This commit is contained in:
parent
9d4429956b
commit
4d88f8aac3
1 changed files with 6 additions and 6 deletions
|
|
@ -2092,11 +2092,11 @@ module.exports = async (
|
||||||
await GunActions.follow(publicKey, false)
|
await GunActions.follow(publicKey, false)
|
||||||
|
|
||||||
// 201 would be extraneous here. Implement it inside app.put
|
// 201 would be extraneous here. Implement it inside app.put
|
||||||
return res.status(200).json({
|
res.status(200).json({
|
||||||
ok: true
|
ok: true
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return res.status(500).json({
|
res.status(500).json({
|
||||||
errorMessage: err.message || 'Unknown error inside /api/gun/follows/'
|
errorMessage: err.message || 'Unknown error inside /api/gun/follows/'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -2114,11 +2114,11 @@ module.exports = async (
|
||||||
|
|
||||||
await GunActions.unfollow(publicKey)
|
await GunActions.unfollow(publicKey)
|
||||||
|
|
||||||
return res.status(200).json({
|
res.status(200).json({
|
||||||
ok: true
|
ok: true
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return res.status(500).json({
|
res.status(500).json({
|
||||||
errorMessage: err.message || 'Unknown error inside /api/gun/follows/'
|
errorMessage: err.message || 'Unknown error inside /api/gun/follows/'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -2180,12 +2180,12 @@ module.exports = async (
|
||||||
await GunActions.generateHandshakeAddress()
|
await GunActions.generateHandshakeAddress()
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.status(200).json({
|
res.status(200).json({
|
||||||
ok: true
|
ok: true
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(err)
|
logger.error(err)
|
||||||
return res.status(500).json({
|
res.status(500).json({
|
||||||
errorMessage: err.message
|
errorMessage: err.message
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue