platform/models/all/src/show.ts
Andrey Sobolev 9dc8ac3b4a
UBERF-8376: Move indexer from server-core (#6829)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-10-09 12:08:27 +07:00

7 lines
283 B
TypeScript

import builder from './'
const enabled = (process.env.MODEL_ENABLED ?? '*').split(',').map((it) => it.trim())
const disabled = (process.env.MODEL_DISABLED ?? '').split(',').map((it) => it.trim())
const model = JSON.stringify(builder(enabled, disabled).getTxes())
console.log(model)