XYOracleNetwork/clients

View on GitHub
packages/modules-mongo/src/Archivist/addArchivistModuleFactories.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { MongoDBArchivist } from '@xyo-network/archivist-mongodb'
import type { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
import { TYPES } from '@xyo-network/node-core-types'
import type { Container } from 'inversify'

export const addArchivistModuleFactories = (container: Container) => {
  const locator = container.get<ModuleFactoryLocator>(TYPES.ModuleFactoryLocator)
  locator.register(MongoDBArchivist)
}