Skip to content

Commit

Permalink
fix: add contacts repository to shards usecase instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
jzunigax2 committed Aug 19, 2024
1 parent 361446f commit 2a0c5a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/cli/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export async function prepare(): Promise<PrepareFunctionReturnType> {

const shardsUsecase = new ShardsUsecase(
mirrorsRepository,
contactsRepository,
networkQueue
);
const bucketEntriesUsecase = new BucketEntriesUsecase(
Expand Down
1 change: 1 addition & 0 deletions lib/server/routes/buckets.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function BucketsRouter(options) {

this.shardsUseCase = new ShardsUsecase(
mirrorsRepository,
contactsRepository,
this.networkQueue,
);

Expand Down

0 comments on commit 2a0c5a2

Please sign in to comment.