Add dynamic indexes

This commit is contained in:
linguist
2020-12-30 12:33:53 +01:00
parent 43875d9d7d
commit a8fe11b7b5
11 changed files with 51 additions and 147 deletions

View File

@@ -20,11 +20,16 @@
//Plugins
for (const name of Object.keys(imports.plugins)) {
if (!plugins[name].enabled) {
console.log("skipping "+name)
continue
}
pending.push((async () => {
try {
console.debug(`metrics/compute/${login}/plugins > ${name} > started`)
data.plugins[name] = await imports.plugins[name]({login, q, imports, data, computed, rest, graphql, queries}, plugins[name])
console.debug(`metrics/compute/${login}/plugins > ${name} > completed (${data.plugins[name] !== null ? "success" : "skipped"})`)
console.debug(`metrics/compute/${login}/plugins > ${name} > completed`)
}
catch (error) {
console.debug(`metrics/compute/${login}/plugins > ${name} > completed (error)`)