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.
This commit is contained in:
Fabien Benetou 2020-10-03 11:47:55 +02:00 committed by GitHub
parent e21a5e0ca1
commit 9d763d577e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,7 @@ router.post('/create', function (req, res) {
catch(e) { catch(e) {
res.status(200).json({error: e}); res.status(200).json({error: e});
} }
});
}); });
module.exports = router; module.exports = router;