Fixing warning in lint
This commit is contained in:
parent
0a3417e813
commit
6427d85c24
1 changed files with 41 additions and 34 deletions
|
@ -11,7 +11,8 @@ export class DebugController {
|
||||||
}
|
}
|
||||||
|
|
||||||
getDump() {
|
getDump() {
|
||||||
this.App.get("/dump", async (res: HttpResponse, req: HttpRequest) => {
|
this.App.get("/dump", (res: HttpResponse, req: HttpRequest) => {
|
||||||
|
(async () => {
|
||||||
const query = parse(req.getQuery());
|
const query = parse(req.getQuery());
|
||||||
|
|
||||||
if (query.token !== ADMIN_API_TOKEN) {
|
if (query.token !== ADMIN_API_TOKEN) {
|
||||||
|
@ -49,6 +50,12 @@ export class DebugController {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
})().catch(e => {
|
||||||
|
console.error(e);
|
||||||
|
res.writeStatus("500");
|
||||||
|
res.end("An error occurred");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue