mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Refactoring
This commit is contained in:
parent
44a5d732a3
commit
4d9a99d436
@ -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');
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ async function init(): Promise<Config> {
|
||||
return config;
|
||||
}
|
||||
|
||||
function spawnWorkers(onComplete: any) {
|
||||
function spawnWorkers(onComplete: Function) {
|
||||
// Count the machine's CPUs
|
||||
const cpuCount = os.cpus().length;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user