lib/services/plugins.js
function createDBAdapter() {
  var returnObj = {
    getMeta,
    patchMeta
  };

  for (const key in db) {
    /* istanbul ignore else */
    if (db.hasOwnProperty(key) && key.indexOf('Meta') === -1) {
      returnObj[key] = db[key];
    }
  }

  return returnObj;
}
function createDBAdapter() {
  var returnObj = {
    getMeta,
    patchMeta
  };

  for (const key in db) {
    /* istanbul ignore else */
    if (db.hasOwnProperty(key) && key.indexOf('Meta') === -1) {
      returnObj[key] = db[key];
    }
  }

  return returnObj;
}
function createDBAdapter ( ) { var returnObj = { getMeta , patchMeta } ; for ( const key in db ) { /* istanbul ignore else */ if ( db . hasOwnProperty ( key ) && key . indexOf ( 'Meta' ) === - 1 ) { returnObj [ key ] = db [ key ] ; } } return returnObj ; }
Builds the db object to pass to
the plugin. Needs to use the metadata
functions and not pass along `putMeta`

@returns {Object}
Builds the db object to pass to the plugin . Needs to use the metadata functions and not pass along putMeta