diff --git a/config/env/dev.json b/config/env/dev.json index f0e9ed76..4ed6032c 100644 --- a/config/env/dev.json +++ b/config/env/dev.json @@ -72,7 +72,13 @@ "host": "@@DB_HOST", "user": "@@DB_USERNAME", "password": "@@DB_PASSWORD", - "port": "@@DB_PORT" + "port": "@@DB_PORT", + "replicaDatabase": "@@REPLICA_DB_NAME", + "replicaHost": "@@REPLICA_DB_HOST", + "replicaUser": "@@REPLICA_DB_USERNAME", + "replicaPassword": "@@REPLICA_DB_PASSWORD", + "replicaPort": "@@REPLICA_DB_PORT", + "replicaConnectionString": "@@REPLICA_DB_CONNECTION_STRING" } }, "replica_db": { diff --git a/src/app.ts b/src/app.ts index e31ebdb2..69da5bb6 100644 --- a/src/app.ts +++ b/src/app.ts @@ -55,6 +55,7 @@ type DependenciesContext = { type ProvidedContext = { anchorService: AnchorService requestRepository: RequestRepository + replicationRequestRepository: ReplicationRequestRepository anchorRepository: AnchorRepository transactionRepository: TransactionRepository blockchainService: BlockchainService @@ -98,9 +99,9 @@ export class CeramicAnchorApp { // register repositories .provideClass('metadataRepository', MetadataRepository) .provideFactory('requestRepository', RequestRepository.make) + .provideClass('replicationRequestRepository', ReplicationRequestRepository) .provideClass('anchorRepository', AnchorRepository) .provideClass('transactionRepository', TransactionRepository) - .provideClass('replicationRequestRepository', ReplicationRequestRepository) // register services .provideFactory('blockchainService', EthereumBlockchainService.make) .provideClass('eventProducerService', HTTPEventProducerService)