1
0
mirror of synced 2025-12-30 03:01:36 -05:00

lowdb@6.0.0 (#36613)

This commit is contained in:
Peter Bengtsson
2023-04-25 14:48:21 -04:00
committed by GitHub
parent 386397d963
commit 97528f6168
3 changed files with 10 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ const EXTERNAL_LINK_CHECKER_DB =
process.env.EXTERNAL_LINK_CHECKER_DB || 'external-link-checker-db.json'
const adapter = new JSONFile(EXTERNAL_LINK_CHECKER_DB)
const externalLinkCheckerDB = new Low(adapter)
const externalLinkCheckerDB = new Low(adapter, { urls: {} })
// Given a number and a percentage, return the same number with a *percentage*
// max change of making a bit larger or smaller.
@@ -233,7 +233,6 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
}
await externalLinkCheckerDB.read()
externalLinkCheckerDB.data ||= { urls: {} }
debugTimeStart(core, 'processPages')
const t0 = new Date().getTime()