Another batch of important updates and fixes

This commit is contained in:
Luka Romih
2026-02-23 15:29:58 +01:00
parent d0e53fee3b
commit fd02e25719
40 changed files with 216 additions and 71 deletions
+7 -2
View File
@@ -196,7 +196,12 @@ function updateDictionaries(done) {
)
},
function (cbwd) {
fetchUpdates(ldict, errd => {
fetchUpdates(ldict, (errd, body) => {
if (body && body.error)
console.error(
'skipping dictionary update due to ',
body.error
)
cbwd(errd)
})
},
@@ -304,7 +309,7 @@ function fetchUpdates(ldict, done) {
if (error) return done(error)
if (body.error) {
// server side error message
return done(body)
return done(null, body)
}
// the body will contain decoded JSON array of dictionary items to update
if (Array.isArray(body)) {