From 2cc5dfd55d5fd922aa3de5672a6cfd070db268b0 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 10 Jun 2020 13:17:28 -0400 Subject: [PATCH] mock response for now --- src/routes.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/routes.js b/src/routes.js index e3f40945..bf31e0ad 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1866,14 +1866,14 @@ module.exports = async ( /** * @type {RequestHandler} */ - const apiGunFollowsPut = async (req, res) => { + const apiGunFollowsPut = (req, res) => { try { const { publicKey } = req.params; if (!publicKey) { throw new Error(`Missing publicKey route param.`) } - await GunActions.follow(req.params.publicKey, false) + // await GunActions.follow(req.params.publicKey, false) // 201 would be extraneous here. Implement it inside app.put return res.status(200).json({ @@ -1889,14 +1889,15 @@ module.exports = async ( /** * @type {RequestHandler} */ - const apiGunFollowsDelete = async (req, res) => { + const apiGunFollowsDelete = (req, res) => { try { const { publicKey } = req.params; if (!publicKey) { throw new Error(`Missing publicKey route param.`) } - await GunActions.unfollow(req.params.publicKey) + // await GunActions.unfollow(req.params.publicKey) + return res.status(200).json({ ok: true })