lib/services/metadata.js
function patchMeta(uri, data) {
  const id = replaceVersion(uri.replace('/meta', ''));

  return db.patchMeta(id, data)
    .then(() => getMeta(uri))
    .then(pubToBus(id));
}
function patchMeta(uri, data) {
  const id = replaceVersion(uri.replace('/meta', ''));

  return db.patchMeta(id, data)
    .then(() => getMeta(uri))
    .then(pubToBus(id));
}
function patchMeta ( uri , data ) { const id = replaceVersion ( uri . replace ( '/meta' , '' ) ) ; return db . patchMeta ( id , data ) . then ( ( ) => getMeta ( uri ) ) . then ( pubToBus ( id ) ) ; }
Update a subset of properties on
a metadata object

@param {String} uri
@param {Object} data
@returns {Promise}
Update a subset of properties on a metadata object