refactor xmr rate module to exchange rate module for multi crypto support
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
getCoingeckoConfig,
|
||||
getEncryptionConfig,
|
||||
getJwtConfig,
|
||||
getKrakenConfig,
|
||||
getCoinPaprikaConfig,
|
||||
getOrderConfig,
|
||||
getInvoiceConfig,
|
||||
getMoneroWalletConfig,
|
||||
@@ -35,7 +35,7 @@ import { StorefrontCheckoutModule } from './modules/storefrontCheckout/Storefron
|
||||
import { StorefrontOrderModule } from './modules/storefrontOrder/StorefrontOrderModule';
|
||||
import { StorefrontCoreModule } from './modules/storefrontCore/StorefrontCoreModule';
|
||||
import { StorefrontProductModule } from './modules/storefrontProduct/StorefrontProductModule';
|
||||
import { XmrRateModule } from './modules/xmrRate/XmrRateModule';
|
||||
import { ExchangeRateModule } from './modules/exchangeRate/ExchangeRateModule';
|
||||
import { Config } from './types/Config';
|
||||
|
||||
@Module({
|
||||
@@ -49,7 +49,7 @@ import { Config } from './types/Config';
|
||||
registerAs('app', getAppConfig),
|
||||
registerAs('jwt', getJwtConfig),
|
||||
registerAs('coingecko', getCoingeckoConfig),
|
||||
registerAs('kraken', getKrakenConfig),
|
||||
registerAs('coinPaprika', getCoinPaprikaConfig),
|
||||
registerAs('encryption', getEncryptionConfig),
|
||||
registerAs('shopSettings', getShopSettingsConfig),
|
||||
registerAs('order', getOrderConfig),
|
||||
@@ -74,7 +74,7 @@ import { Config } from './types/Config';
|
||||
};
|
||||
}
|
||||
}),
|
||||
XmrRateModule,
|
||||
ExchangeRateModule,
|
||||
TypeOrmModule.forRootAsync({
|
||||
useFactory: (configService: ConfigService) => configService.get('postgres') as Config['postgres'],
|
||||
inject: [ConfigService]
|
||||
|
||||
Reference in New Issue
Block a user