Skip to content

Commit

Permalink
Merge pull request #28 from cabal-club/database-version-rename
Browse files Browse the repository at this point in the history
Database version Rename
  • Loading branch information
cblgh authored Nov 16, 2018
2 parents 0efa65b + 501b494 commit 12bafdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ var createMessagesView = require('./views/messages')
var createTopicsView = require('./views/topics')
var createUsersView = require('./views/users')

var PROTOCOL_VERSION = '1.0.0'
var DATABASE_VERSION = 1

module.exports = Cabal
module.exports.protocolVersion = PROTOCOL_VERSION
module.exports.databaseVersion = DATABASE_VERSION

/**
* Create a new cabal. This is the object handling all
Expand Down Expand Up @@ -66,9 +66,9 @@ function Cabal (storage, key, opts) {
}

inherits(Cabal, events.EventEmitter)
Cabal.prototype.getProtocolVersion = function (cb) {
Cabal.prototype.getDatabaseVersion = function (cb) {
if (!cb) cb = noop
process.nextTick(cb, PROTOCOL_VERSION)
process.nextTick(cb, DATABASE_VERSION)
}

/**
Expand Down

0 comments on commit 12bafdd

Please sign in to comment.