fix(xo-server/LevelDbLogger#del): don't use ignoreErrors on undefined

Fixes #6250

Introduced by 98bbd53c28

With a callback, levelup methods don't return a promise.
This commit is contained in:
Julien Fontanet 2022-05-26 23:43:44 +02:00
parent 78330a0e11
commit 80974fa1dc

View File

@ -56,7 +56,7 @@ export default class LevelDbLogger extends AbstractLogger {
forEach(Array.isArray(id) ? id : [id], id => {
this._db.get(id).then(value => {
if (value.namespace === this._namespace) {
ignoreErrors.call(this._db.del(id, noop))
this._db.del(id, noop)
}
})
})