Skip to content

Commit

Permalink
Fix:Ignore dot files in migrations folder #3510
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Oct 14, 2024
1 parent a7288b4 commit 13dd4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/managers/MigrationManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class MigrationManager {

async initUmzug(umzugStorage = new SequelizeStorage({ sequelize: this.sequelize })) {
// This check is for dependency injection in tests
const files = (await fs.readdir(this.migrationsDir)).map((file) => path.join(this.migrationsDir, file))
const files = (await fs.readdir(this.migrationsDir)).filter((file) => !file.startsWith('.')).map((file) => path.join(this.migrationsDir, file))

const parent = new Umzug({
migrations: {
Expand Down

0 comments on commit 13dd4ed

Please sign in to comment.