prom: fix gauge typings

This commit is contained in:
undefined committed 2022-08-20 18:11:01 +08:00
1 parent 43f5f0c9c3
commit 55cee2ef1c
4 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.15.17",
"version": "3.15.18",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+2 -1
View File
@@ -416,9 +416,10 @@ export function Connection(
};
}
conn.onclose = () => {
h.cleanup?.(args);
bus.emit('connection/close', h);
h.cleanup?.(args);
};
bus.emit('connection/active', h);
} catch (e) {
await h.onerror(e);
}