Extract database and settings modules

This commit is contained in:
Daniel Gasienica 2018-03-28 10:54:01 -04:00
parent 5bea894abd
commit 016432826b
4 changed files with 117 additions and 102 deletions

View file

@ -8,7 +8,7 @@ const { deferredToPromise } = require('../deferred_to_promise');
const closeDatabase = ({ Backbone } = {}) =>
deferredToPromise(Backbone.sync('closeall'))
deferredToPromise(Backbone.sync('closeall'));
exports.runMigrations = async ({ Backbone, database } = {}) => {
if (!isObject(Backbone) || !isObject(Backbone.Collection) ||