diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-12 07:37:29 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-12 07:37:29 +0200 |
commit | 17659ce1983f39720de51b5fb898af515f701206 (patch) | |
tree | da3057beba1b7ac136f7b6d82323b70a88737128 /api/routes/getZblock | |
parent | 88e9bb162fecb6c44ac07b01e99fca1f69e2f5b6 (diff) | |
download | arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.tar.gz arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.tar.bz2 arching-kaos-tools-17659ce1983f39720de51b5fb898af515f701206.zip |
Caching enabled results and a fix
Diffstat (limited to 'api/routes/getZblock')
-rw-r--r-- | api/routes/getZblock/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/routes/getZblock/index.js b/api/routes/getZblock/index.js index c975594..a9ec02c 100644 --- a/api/routes/getZblock/index.js +++ b/api/routes/getZblock/index.js @@ -12,7 +12,7 @@ const config = require("../../config"); */ function fetchZblock(zblock, res){ regex= /Qm[A-Za-z0-9]{44}/; - if (regex.test(req.params.zblock)){ + if (regex.test(zblock)){ const command = spawn("ak-zblock-cache",[zblock]); command.stdout.on("data", data => { }); |