diff --git a/bin/cli/init.ts b/bin/cli/init.ts index fdf43d9c..b27f2ad5 100644 --- a/bin/cli/init.ts +++ b/bin/cli/init.ts @@ -97,6 +97,7 @@ export async function prepare(): Promise { const shardsUsecase = new ShardsUsecase( mirrorsRepository, + contactsRepository, networkQueue ); const bucketEntriesUsecase = new BucketEntriesUsecase( diff --git a/lib/server/routes/buckets.js b/lib/server/routes/buckets.js index 8ca7fa21..a340646f 100644 --- a/lib/server/routes/buckets.js +++ b/lib/server/routes/buckets.js @@ -81,6 +81,7 @@ function BucketsRouter(options) { this.shardsUseCase = new ShardsUsecase( mirrorsRepository, + contactsRepository, this.networkQueue, );