mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
remove spread syntax
This commit is contained in:
@@ -3,13 +3,14 @@ const io = require('orbit-db-io')
|
||||
|
||||
// Creates a DB manifest file and saves it in IPFS
|
||||
const createDBManifest = async (ipfs, name, type, accessControllerAddress, options) => {
|
||||
const manifest = {
|
||||
const manifest = Object.assign({
|
||||
name: name,
|
||||
type: type,
|
||||
accessController: path.join('/ipfs', accessControllerAddress),
|
||||
// meta field is only added to manifest if options.meta is defined
|
||||
...(options.meta !== undefined ? { meta: options.meta } : {})
|
||||
}
|
||||
accessController: path.join('/ipfs', accessControllerAddress)
|
||||
},
|
||||
// meta field is only added to manifest if options.meta is defined
|
||||
options.meta !== undefined ? { meta: options.meta } : {}
|
||||
)
|
||||
|
||||
return io.write(ipfs, options.format || 'dag-cbor', manifest, options)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user