Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with transaction and contract recovery #54

Merged
merged 4 commits into from
Nov 2, 2023
Merged

Conversation

KyrylR
Copy link
Member

@KyrylR KyrylR commented Nov 2, 2023

No description provided.

@KyrylR KyrylR requested a review from Arvolear November 2, 2023 10:52
@KyrylR KyrylR self-assigned this Nov 2, 2023
Comment on lines 43 to 46
for (const element of this._migrationFiles) {
Stats.currentMigration = this._getMigrationNumber(element);
Reporter.reportMigrationFileBegin(element);
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (const element of this._migrationFiles) {
Stats.currentMigration = this._getMigrationNumber(element);
Reporter.reportMigrationFileBegin(element);
try {
for (const element of this._migrationFiles) {
Stats.currentMigration = this._getMigrationNumber(element);
Reporter.reportMigrationFileBegin(element);
try {

@@ -80,7 +82,7 @@ export class Migrator {
return statSync(resolvePathToFile(this._config.pathToMigrations, file)).isFile();
})
.sort((a, b) => {
return parseInt(basename(a)) - parseInt(basename(b));
return this._getMigrationNumber(b);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member

@Arvolear Arvolear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Arvolear Arvolear merged commit aaa4adf into master Nov 2, 2023
2 checks passed
@Arvolear Arvolear deleted the fix/issues branch November 2, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants