Skip to content

Commit

Permalink
fix: always use setupEventsCache
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Oct 6, 2024
1 parent 55b0dd1 commit 941f9a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/contracts/deposits-registry/store/store.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ describe('dbService', () => {
deposits: [0, 1, 2, 3],
expectedRemaining: [0, 1, 2, 3],
},
{
deposits: [0, 1, 1, 2, 3],
expectedRemaining: [0, 1],
},
{
deposits: [0, 1, 0],
expectedRemaining: [0, 1],
},
{
deposits: [1, 2, 3],
expectedRemaining: [],
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/deposits-registry/store/store.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ export class DepositsRegistryStoreService {
value: JSON.stringify(headers),
});
await this.db.batch(ops);
await this.setupEventsCache();
}
await this.setupEventsCache();
}

/**
Expand Down

0 comments on commit 941f9a8

Please sign in to comment.