mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
Refactoring
This commit is contained in:
parent
e086c68115
commit
a3bd039bcf
@ -26,7 +26,7 @@ export default async (endpoint: Endpoint, req: express.Request, res: express.Res
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ctx.app && endpoint.kind) {
|
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');
|
return reply(403, 'ACCESS_DENIED');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ async function init(): Promise<Config> {
|
|||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnWorkers(onComplete: any) {
|
function spawnWorkers(onComplete: Function) {
|
||||||
// Count the machine's CPUs
|
// Count the machine's CPUs
|
||||||
const cpuCount = os.cpus().length;
|
const cpuCount = os.cpus().length;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user