From 17659ce1983f39720de51b5fb898af515f701206 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 12 Mar 2024 07:37:29 +0200 Subject: Caching enabled results and a fix --- api/routes/getZblock/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/routes/getZblock/index.js') 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 => { }); -- cgit v1.2.3