Reformat all project files to use the prettier config file.
This commit is contained in:
@@ -9,12 +9,12 @@ const path = require("path");
|
||||
* @param next
|
||||
*/
|
||||
function eventAuthorizationMiddleware(req, res, next) {
|
||||
if (req.headers["event-secret"] !== process.env.EVENT_SECRET) {
|
||||
return res.status(401).send("Unauthorized");
|
||||
}
|
||||
if (req.headers["event-secret"] !== process.env.EVENT_SECRET) {
|
||||
return res.status(401).send("Unauthorized");
|
||||
}
|
||||
|
||||
req.isEventAuthorized = true;
|
||||
next();
|
||||
req.isEventAuthorized = true;
|
||||
next();
|
||||
}
|
||||
|
||||
module.exports = eventAuthorizationMiddleware;
|
||||
module.exports = eventAuthorizationMiddleware;
|
||||
|
||||
Reference in New Issue
Block a user