From 17da950df942a85641460e32fe4fd55e3c90693f Mon Sep 17 00:00:00 2001 From: emad-salah Date: Fri, 10 Jul 2020 12:39:08 +0100 Subject: [PATCH] Minor code refactoring --- src/routes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes.js b/src/routes.js index 83a31ede..82555dde 100644 --- a/src/routes.js +++ b/src/routes.js @@ -372,7 +372,7 @@ module.exports = async ( const authorizedDevice = await Encryption.authorizeDevice({ deviceId, publicKey }) logger.info(authorizedDevice) - return res.status(200).json(authorizedDevice) + return res.json(authorizedDevice) } catch (err) { logger.error(err) return res.status(401).json({ @@ -1416,7 +1416,7 @@ module.exports = async ( return res.status(400).json(err); } - return res.status(200).json(data); + return res.json(data); }); }); @@ -1430,7 +1430,7 @@ module.exports = async ( return res.status(400).json(err); } - return res.status(200).json(data); + return res.json(data); }); });