mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: minor
This commit is contained in:
parent
ef788591bf
commit
51d7650d08
@ -358,7 +358,7 @@ module.exports = {
|
|||||||
exist = Boolean(migrationDocument.status === action);
|
exist = Boolean(migrationDocument.status === action);
|
||||||
if (exist) {
|
if (exist) {
|
||||||
this.logger.warn(
|
this.logger.warn(
|
||||||
`Cannot proceed migration "${name}" is already in "${action}" state`,
|
`Cannot proceed migration "${version}" is already in "${action}" state`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -407,7 +407,8 @@ module.exports = {
|
|||||||
.map((name) => {
|
.map((name) => {
|
||||||
const [, ...migrationVersion] = name.split('-');
|
const [, ...migrationVersion] = name.split('-');
|
||||||
return `v${migrationVersion.join('.')}` as MigrationVersion;
|
return `v${migrationVersion.join('.')}` as MigrationVersion;
|
||||||
});
|
})
|
||||||
|
.filter((value, index, self) => self.indexOf(value) === index);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user