Fix CI
This commit is contained in:
parent
84f7a8c383
commit
b9840cfa3d
1 changed files with 27 additions and 25 deletions
|
@ -23,7 +23,9 @@ export class DebugController {
|
|||
.writeStatus("200 OK")
|
||||
.writeHeader("Content-Type", "application/json")
|
||||
.end(
|
||||
stringify(await Promise.all(socketManager.getWorlds().values()), (key: unknown, value: unknown) => {
|
||||
stringify(
|
||||
await Promise.all(socketManager.getWorlds().values()),
|
||||
(key: unknown, value: unknown) => {
|
||||
if (key === "listeners") {
|
||||
return "Listeners";
|
||||
}
|
||||
|
@ -48,10 +50,10 @@ export class DebugController {
|
|||
} else {
|
||||
return value;
|
||||
}
|
||||
})
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
})().catch(e => {
|
||||
})().catch((e) => {
|
||||
console.error(e);
|
||||
res.writeStatus("500");
|
||||
res.end("An error occurred");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue