Skip to content

Commit

Permalink
Merge pull request #206 from leapfrogtechnology/fix/migration-list
Browse files Browse the repository at this point in the history
Fix the type displayed instead of migration name with migrate-list
  • Loading branch information
mesaugat authored Jun 7, 2023
2 parents 182a320 + 08319be commit c0ebfcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/migrate-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class MigrateList extends Command {

// Completed migrations.
for (const item of completedList) {
await printLine(cyan(` • ${item}`));
const completedMigrationName = typeof item === 'string' || item instanceof String ? item : item?.name;

await printLine(cyan(` • ${completedMigrationName}`));
}

// Remaining Migrations
Expand Down

0 comments on commit c0ebfcd

Please sign in to comment.