Merge pull request #608 from orbitdb/fix/pass-name

pass dbName to ac
This commit is contained in:
shamb0t
2019-04-23 17:25:44 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

6
package-lock.json generated
View File

@@ -11030,9 +11030,9 @@
}
},
"prometheus-gc-stats": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/prometheus-gc-stats/-/prometheus-gc-stats-0.6.1.tgz",
"integrity": "sha512-DUo/cDs+1XcVuqoFU6+DjmWjkjIRIVeswtZAIfslIPrYfli2NK0/g/BPoO/kqOgLvzbKRx4m9+MDeNsNIIJGkg==",
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/prometheus-gc-stats/-/prometheus-gc-stats-0.6.2.tgz",
"integrity": "sha512-ABSVHkAuYrMLj1WHmlLfS0hu9Vc2ELKuecwiMWPNQom+ZNiAdcILTn5yGK7sZg2ttoWc2u++W5NjdJ3IjdYJZw==",
"dev": true,
"optional": true,
"requires": {

View File

@@ -247,7 +247,7 @@ let databaseTypes = {
throw new Error(`Given database name is an address. Please give only the name of the database!`)
// Create an AccessController, use IPFS AC as the default
options.accessController = Object.assign({}, { type: 'ipfs' }, options.accessController)
options.accessController = Object.assign({}, { address: name, type: 'ipfs' }, options.accessController)
const accessControllerAddress = await AccessControllers.create(this, options.accessController.type, options.accessController || {})
// Save the manifest to IPFS