Use window.log in browser context, turn on console eslint rule
This commit is contained in:
@@ -16,7 +16,7 @@ const migrations = [
|
||||
// },
|
||||
];
|
||||
|
||||
exports.run = async ({ Backbone, database } = {}) => {
|
||||
exports.run = async ({ Backbone, database, logger } = {}) => {
|
||||
const { canRun } = await exports.getStatus({ database });
|
||||
if (!canRun) {
|
||||
throw new Error(
|
||||
@@ -24,7 +24,7 @@ exports.run = async ({ Backbone, database } = {}) => {
|
||||
);
|
||||
}
|
||||
|
||||
await runMigrations({ Backbone, database });
|
||||
await runMigrations({ Backbone, database, logger });
|
||||
};
|
||||
|
||||
exports.getStatus = async ({ database } = {}) => {
|
||||
|
Reference in New Issue
Block a user