From 9d763d577e390aaac8a980fac6343b33fff5abe0 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Sat, 3 Oct 2020 11:47:55 +0200 Subject: [PATCH] closing crypto.generateKeyPair() properly After cloning the repository motivated by https://hacks.mozilla.org/2018/11/decentralizing-social-interactions-with-activitypub/ a syntax error on this file prevented from running the server. Closing crypto.generateKeyPair() properly seemed to prevent the error and the server seems to run properly. --- routes/admin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/admin.js b/routes/admin.js index fa15632..ade69d3 100644 --- a/routes/admin.js +++ b/routes/admin.js @@ -68,6 +68,7 @@ router.post('/create', function (req, res) { catch(e) { res.status(200).json({error: e}); } + }); }); module.exports = router;