Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Add type property for reachdown (Level/community#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Sep 22, 2019
1 parent 050e3ca commit d725246
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/levelup.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ LevelUP.prototype.toString = function () {
return 'LevelUP'
}

LevelUP.prototype.type = 'levelup'

function maybeError (db, callback) {
if (!db._isOpening() && !db.isOpen()) {
process.nextTick(callback, new ReadError('Database is not open'))
Expand Down

0 comments on commit d725246

Please sign in to comment.