Update 0.21-0.22.js

This commit is contained in:
Mark Robert Henderson 2019-09-02 09:42:05 -04:00 committed by GitHub
parent e793edf9cf
commit 43c2db796a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,8 @@ const logger = Logger.create('orbit-db')
Logger.setLogLevel('ERROR')
async function migrate (OrbitDB, options, dbAddress) {
let oldCache = OrbitDB.caches[options.directory]; let oldStore
let oldCache = OrbitDB.caches[options.directory]
let oldStore
if (!oldCache) {
const addr = path.join(OrbitDB.directory, dbAddress.root, dbAddress.path)