diff --git a/storage.js b/storage.js index f49bc5b..9e0be5a 100644 --- a/storage.js +++ b/storage.js @@ -46,6 +46,9 @@ const memoryUpdate = (model, filter, data, callback) => { function start(config) { // schema backend type const schemaType = process.env.database__default__type || config && config.database && config.database.type ||'memory'; + // FIXME: move to lib.config + // expose the set schemaType + module.exports.schemaType = schemaType; //console.log('storage config', config) const options = { host: config && config.database && config.database.host || 'localhost',