From bcceed24b122aad20eacf1f0a498e1285aa649c7 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 27 Nov 2020 21:01:00 +0200 Subject: [PATCH] sync redis --- swarmlab-app/src/run/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 81a7186..81d35cb 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -415,7 +415,7 @@ cors(corsOptions), (req, res, next) => { // *************************************************** function getSHA256ofJSON(input){ - return crypto.createHash('sha256').update(JSON.stringify(input)).digest('hex') + return require("crypto").createHash("sha256").update(JSON.stringify(input)).digest("hex"); }