fix: knex transaction error on adding the migrations in migration folder - postgres

This commit is contained in:
meherchandan 2022-06-27 12:48:50 +04:00
parent 86e57e17f4
commit abbdc9fad0

View File

@ -7,7 +7,7 @@ const { Umzug } = require('umzug');
const createStorage = require('./storage');
const wrapTransaction = db => fn => () =>
db.getConnection().transaction(trx => Promise.resolve(fn(trx)));
db.connection.transaction(trx => Promise.resolve(fn(trx)));
// TODO: check multiple commands in one sql statement
const migrationResolver = ({ name, path, context }) => {