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

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

  return db.putMeta(id, data)
    .then(pubToBus(id));
}
function putMeta ( uri , data ) { const id = replaceVersion ( uri . replace ( '/meta' , '' ) ) ; return db . putMeta ( id , data ) . then ( pubToBus ( id ) ) ; }
Write the page's meta object to the DB

@param {String} uri
@param {Object} data
@returns {Promise}
Write the page s meta object to the DB