diff --git a/src/api/api-handler.ts b/src/api/api-handler.ts index 4cde538ae1..fb603a0e2a 100644 --- a/src/api/api-handler.ts +++ b/src/api/api-handler.ts @@ -26,7 +26,7 @@ export default async (endpoint: Endpoint, req: express.Request, res: express.Res } if (ctx.app && endpoint.kind) { - if (!ctx.app.permission.some((p: any) => p === endpoint.kind)) { + if (!ctx.app.permission.some(p => p === endpoint.kind)) { return reply(403, 'ACCESS_DENIED'); } } diff --git a/src/index.ts b/src/index.ts index 6e9341f910..04c4226aa1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -121,7 +121,7 @@ async function init(): Promise { return config; } -function spawnWorkers(onComplete: any) { +function spawnWorkers(onComplete: Function) { // Count the machine's CPUs const cpuCount = os.cpus().length;