Skip to content

Commit

Permalink
chore: add system contracts in one migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriyaga committed Jan 16, 2025
1 parent 219bebf commit e49bb63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/worker/src/app.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe("AppService", () => {
it("runs migrations", async () => {
appService.onModuleInit();
await migrationsRunFinished;
expect(runMigrations).toBeCalledTimes(2);
expect(runMigrations).toBeCalledTimes(1);
appService.onModuleDestroy();
});

Expand Down
5 changes: 1 addition & 4 deletions packages/worker/src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ export class AppService implements OnModuleInit, OnModuleDestroy {
}

public onModuleInit() {
runMigrations(this.dataSource, this.logger).then(() => {
this.startWorkers();
});

runMigrations(this.dataSource, this.logger).then(() => {
this.systemContractService.addSystemContracts();
this.startWorkers();
});
}

Expand Down

0 comments on commit e49bb63

Please sign in to comment.