mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
enhancement(lint): Fix lint errors for src/modules/slackapp.ts
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
9048b28973
commit
84042739bb
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@ export const app = new App({
|
|||
method: ["POST"],
|
||||
async handler(req, res) {
|
||||
await new Promise((resolve) => {
|
||||
require ("cors")(req,res,resolve)
|
||||
})
|
||||
require("cors")(req, res, resolve);
|
||||
});
|
||||
const authHeader = req.headers["authorization"];
|
||||
if (authHeader !== process.env.AUTH) {
|
||||
res.writeHead(401).end();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue