core: export metrics with tx2

This commit is contained in:
undefined committed 2021-09-15 18:11:43 +08:00
1 parent 14df7d7a05
commit 7f25778671
5 files changed
+21 -9

No files matched your search

+2 -2
View File
@@ -30,9 +30,9 @@ declare module 'hydrooj/src/interface' {
const cache = {};
const coll = db.collection('cache');
const pages = Object.keys(global.ui.manifest)
const pages = Object.keys(global.Hydro.ui.manifest)
.filter((file) => file.endsWith('.page.js'))
.map((i) => readFileSync(join(global.ui.manifest[i], i), 'utf-8'));
.map((i) => readFileSync(join(global.Hydro.ui.manifest[i], i), 'utf-8'));
async function constant(args: ConstantArgs) {
// CompileLangs