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:
parent
78330a0e11
commit
80974fa1dc
@ -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)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user