From 333864c5fe098b6993066d73b8d6d8e6fb358eb0 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 14 Apr 2025 16:54:13 +0300 Subject: [api] Removes unnecessary anonymous JS functions --- api/routes/announceZBlock/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api/routes/announceZBlock/index.js') diff --git a/api/routes/announceZBlock/index.js b/api/routes/announceZBlock/index.js index 254e1dc..dc1467a 100644 --- a/api/routes/announceZBlock/index.js +++ b/api/routes/announceZBlock/index.js @@ -13,7 +13,8 @@ * */ const getvalidity = require('../../validators/ZblockValidator') -module.exports = (req, res) => { +function announceZBlock(req, res) +{ console.log(req); if ( (req.body.zblock) && typeof req.body.zblock === "string" && req.body.zblock.length === 46 ){ let zblock = req.body.zblock; @@ -27,3 +28,4 @@ module.exports = (req, res) => { res.send({error:"Invalid data"}); } } +module.exports = announceZBlock; -- cgit v1.2.3