Extract database
and settings
modules
This commit is contained in:
parent
5bea894abd
commit
016432826b
4 changed files with 117 additions and 102 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue