chore: server code formatting

This commit is contained in:
Rafael Taranto 2025-05-12 15:35:00 +01:00
parent aedabcbdee
commit 68517170e2
234 changed files with 9824 additions and 6195 deletions

View file

@ -7,11 +7,11 @@ const migrateDir = path.resolve(__dirname, '..', 'migrations')
const migrateOpts = {
migrationsDirectory: migrateDir,
stateStore: new DbMigrateStore(),
filterFunction: it => it.match(/^\d+.*\.js$/)
filterFunction: it => it.match(/^\d+.*\.js$/),
}
module.exports = { run }
function run () {
function run() {
return new Promise((resolve, reject) => {
migrate.load(migrateOpts, (err, set) => {
if (err) return reject(err)