diff --git a/src/db-manifest.js b/src/db-manifest.js index 00e44b9..9e23168 100644 --- a/src/db-manifest.js +++ b/src/db-manifest.js @@ -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) }