diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 05:08:59 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 05:08:59 +0300 |
commit | ae9726f747b2ec3e5805d03ef04ad47cb7628315 (patch) | |
tree | cebc25f70264532a3b6276c4c7acc159d4703d2e /api/routes/announceZChain/index.js | |
parent | ab7cbfd693c6251f6c1bc427eb9a65b1dbee159e (diff) | |
download | arching-kaos-tools-ae9726f747b2ec3e5805d03ef04ad47cb7628315.tar.gz arching-kaos-tools-ae9726f747b2ec3e5805d03ef04ad47cb7628315.tar.bz2 arching-kaos-tools-ae9726f747b2ec3e5805d03ef04ad47cb7628315.zip |
Refactoring
Diffstat (limited to 'api/routes/announceZChain/index.js')
-rw-r--r-- | api/routes/announceZChain/index.js | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/api/routes/announceZChain/index.js b/api/routes/announceZChain/index.js index 91ac5b9..a1b336c 100644 --- a/api/routes/announceZChain/index.js +++ b/api/routes/announceZChain/index.js @@ -1,24 +1,4 @@ /* - * After NS validation went through we examine the return code - * of the application that run the test. - * - * Returns: - * - error on failure - * - on success we process with addNSEntriesToFile() - * - */ -function continuethingsNS(validitycode,sh,res,gotit){ - if (validitycode === 0){ - var entry = { - zchain: sh, - latest: JSON.parse(gotit).Path.replace('/ipfs/','') - }; - addNSEntriesToFile(entry,res); - } else { - res.send({error:"Invalid data"}); - } -} -/* * Accepts a zchain * * Checks: @@ -32,7 +12,7 @@ function continuethingsNS(validitycode,sh,res,gotit){ * function getNSvalidity() * */ -const getNSvalidity = require('../../validators/ZchainValidator') +const getNSvalidity = require('../../validators/ZchainValidator'); module.exports = (req, res) => { console.log(req); |