Add new plugin habits

This commit is contained in:
lowlighter
2020-10-13 23:00:05 +02:00
parent e9e23d6028
commit 7ff3a7f46b
16 changed files with 221 additions and 25 deletions

View File

@@ -16,7 +16,7 @@
console.debug(`metrics/plugins/lines/${login} > started`)
//Plugin execution
pending.push(new Promise(async (solve, reject) => {
pending.push(new Promise(async solve => {
try {
//Get contributors stats from repositories
const lines = {added:0, deleted:0}
@@ -41,7 +41,10 @@
solve()
}
catch (error) {
reject(error)
//Generic error
computed.plugins.pagespeed = {error:`An error occured`}
console.debug(error)
solve()
}
}))
}