mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: minor
This commit is contained in:
parent
ef788591bf
commit
51d7650d08
@ -358,7 +358,7 @@ module.exports = {
|
||||
exist = Boolean(migrationDocument.status === action);
|
||||
if (exist) {
|
||||
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) => {
|
||||
const [, ...migrationVersion] = name.split('-');
|
||||
return `v${migrationVersion.join('.')}` as MigrationVersion;
|
||||
});
|
||||
})
|
||||
.filter((value, index, self) => self.indexOf(value) === index);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user