Merge pull request #59 from unilogica/main

Bugfix Internal Error 500: fetchInstances (apikey not found)
This commit is contained in:
Davidson Gomes
2023-08-29 11:24:03 -03:00
committed by GitHub
6 changed files with 14 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ async function jwtGuard(req: Request, res: Response, next: NextFunction) {
}
}
async function apikey(req: Request, res: Response, next: NextFunction) {
async function apikey(req: Request, _: Response, next: NextFunction) {
const env = configService.get<Auth>('AUTHENTICATION').API_KEY;
const key = req.get('apikey');