Browse Source

chore: bump glob package

nc-feat/attachment-clean-up
mertmit 4 months ago
parent
commit
be8b9efd83
  1. 8
      packages/nocodb/src/db/sql-migrator/lib/KnexMigratorv2.ts

8
packages/nocodb/src/db/sql-migrator/lib/KnexMigratorv2.ts

@ -1,7 +1,7 @@
import fs from 'fs';
import path from 'path';
import { promisify } from 'util';
import glob from 'glob';
import { glob } from 'glob';
import Debug from '../../util/Debug';
import Emit from '../../util/emit';
import * as fileHelp from '../../util/file.help';
@ -593,8 +593,8 @@ export default class KnexMigratorv2 {
})
.orderBy('id', 'asc');
} else {
files = await promisify(glob)(args.upFilesPattern);
filesDown = await promisify(glob)(args.downFilesPattern);
files = await glob(args.upFilesPattern);
filesDown = await glob(args.downFilesPattern);
}
// get evolutions from sql
@ -862,7 +862,7 @@ export default class KnexMigratorv2 {
.orderBy('title', 'asc');
} else {
// get all evolutions from fs
files = await promisify(glob)(args.downFilesPattern);
files = await glob(args.downFilesPattern);
}
// get done evolutions from sql
// const connection = this._getSqlConnectionFromDbAlias(

Loading…
Cancel
Save