From 734b522aa3ff0c73ce5cedc3846f5d0b1e369bcb Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Thu, 18 Jun 2020 03:29:32 +0000 Subject: [PATCH] expose schemaType --- storage.js | 3 +++ 1 file changed, 3 insertions(+) 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',