Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: config #400

Merged
merged 9 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EscrowAccounts } from '@common/escrow/models/deposit.entity';
import { IndexerModule } from '@indexer/indexer.module';
import { SubstrateListenerModule } from '@listeners/substrate-listener/substrate-listener.module';
import { SchedulersModule } from '@schedulers/schedulers.module';
import { config } from './config';
import { config } from 'src/config';

// eslint-disable-next-line @typescript-eslint/no-var-requires
require('dotenv').config();
Expand Down
2 changes: 1 addition & 1 deletion src/common/caches/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CacheModule, Module } from '@nestjs/common';
import { CachesService } from './caches.service';
import * as redisStore from 'cache-manager-redis-store';
import { config } from '../../config';
import { config } from 'src/config';

require('dotenv').config(); // eslint-disable-line

Expand Down
2 changes: 1 addition & 1 deletion src/common/common.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Module } from '@nestjs/common';
import { CqrsModule } from '@nestjs/cqrs';
import { ElasticsearchModule } from '@nestjs/elasticsearch';
import { config } from '../config';
import { config } from 'src/config';

// eslint-disable-next-line @typescript-eslint/no-var-requires
require('dotenv').config();
Expand Down
2 changes: 1 addition & 1 deletion src/common/debio-conversion/debio-conversion.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable, Logger } from '@nestjs/common';
import axios from 'axios';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class DebioConversionService {
Expand Down
2 changes: 1 addition & 1 deletion src/common/escrow/escrow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ethers } from 'ethers';
import AsyncLock from 'async-lock';
import { ErrorLoggingService } from '../error-logging';
import { ErrorLoggingDto } from '../error-logging/dto/error-logging.dto';
import { config } from '../../config';
import { config } from 'src/config';

const lock = new AsyncLock();
const ESCROW_WALLET_LOCK_KEY = 'escrow-wallet-lock';
Expand Down
2 changes: 1 addition & 1 deletion src/common/ethereum/ethereum.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { EthersModule } from 'nestjs-ethers';
import { EthereumService } from './ethereum.service';
import { CachesModule } from '../caches';
import { ProcessEnvModule } from '../proxies';
import { config } from '../../config';
import { config } from 'src/config';

@Module({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion src/common/ethereum/ethereum.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ABI from './utils/ABI.json';
import escrowContract from './utils/Escrow.json';
import { ethers } from 'ethers';
import { CachesService } from '../caches';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class EthereumService {
Expand Down
2 changes: 1 addition & 1 deletion src/common/mailer/mailer.manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Injectable, Logger } from '@nestjs/common';
import { CustomerStakingRequestService, LabRegister } from './models';
import { NewOrderGA } from './models/new-order-ga.model';
import { NewOrderLab } from './models/new-order-lab.model';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class MailerManager {
Expand Down
2 changes: 1 addition & 1 deletion src/common/mailer/mailer.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handleba
import { Module } from '@nestjs/common';
import { join } from 'path';
import { MailerManager } from './mailer.manager';
import { config } from '../../config';
import { config } from 'src/config';

@Module({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion src/common/substrate/substrate.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ApiPromise, Keyring, WsProvider } from '@polkadot/api';
import { Injectable, OnModuleInit, Logger } from '@nestjs/common';
import { waitReady } from '@polkadot/wasm-crypto';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class SubstrateService implements OnModuleInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from '@debionetwork/polkadot-provider';
import { TransactionTypeList } from '@common/transaction-type/models/transaction-type.list';
import { TransactionStatusList } from '@common/transaction-status/models/transaction-status.list';
import { config } from '../../../../../config';
import { config } from 'src/config';

@Injectable()
@CommandHandler(GeneticAnalysisOrderPaidCommand)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { NotificationDto } from '@common/notification/dto/notification.dto';
import currencyUnit from '../../../models/currencyUnit';
import { TransactionTypeList } from '@common/transaction-type/models/transaction-type.list';
import { TransactionStatusList } from '@common/transaction-status/models/transaction-status.list';
import { config } from '../../../../../config';
import { config } from 'src/config';

@Injectable()
@CommandHandler(OrderPaidCommand)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { StateService } from '@common/location/state.service';
import { NotificationDto } from '@common/notification/dto/notification.dto';
import { TransactionTypeList } from '@common/transaction-type/models/transaction-type.list';
import { TransactionStatusList } from '@common/transaction-status/models/transaction-status.list';
import { config } from '../../../../../config';
import { config } from 'src/config';

@Injectable()
@CommandHandler(ServiceRequestCreatedCommand)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { Lab, queryLabById, Service } from '@debionetwork/polkadot-provider';
import { ServiceCreatedCommand } from './service-created.command';
import { NotificationDto } from '@common/notification/dto/notification.dto';
import { config } from '../../../../../config';
import { config } from 'src/config';

@Injectable()
@CommandHandler(ServiceCreatedCommand)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { MailerModule } from '@nestjs-modules/mailer';
import { HandlebarsAdapter } from '@nestjs-modules/mailer/dist/adapters/handlebars.adapter';
import { join } from 'path';
import { MenstrualSubscriptionCommandHandler } from './commands/menstrual-subscription';
import { config } from '../../config';
import { config } from 'src/config';

@Module({
imports: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
queryGeneticAnalystByAccountId,
retrieveGeneticAnalystUnstakeAmount,
} from '@debionetwork/polkadot-provider';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class GeneticAnalystUnstakedService implements OnModuleInit {
Expand Down
2 changes: 1 addition & 1 deletion src/schedulers/lab-unstake/lab-unstake.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
queryLabById,
retrieveLabUnstakeAmount,
} from '@debionetwork/polkadot-provider';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class LabUnstakedService implements OnModuleInit {
Expand Down
2 changes: 1 addition & 1 deletion src/schedulers/mailer/mailer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
LabRegister,
} from '@common/index';
import { queryLabById } from '@debionetwork/polkadot-provider';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class MailerService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { queryMenstrualSubscriptionById } from '@debionetwork/polkadot-provider/
import { SubscriptionStatus } from '@debionetwork/polkadot-provider/lib/primitives/subscription-status';
import { PaymentStatus } from '@debionetwork/polkadot-provider/lib/primitives/payment-status';
import { Duration } from '@debionetwork/polkadot-provider/lib/primitives/duration';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class MenstrualSubscriptionService {
Expand Down
2 changes: 1 addition & 1 deletion src/schedulers/schedulers.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { MailerService } from './mailer/mailer.service';
import { UnstakedService } from './unstaked/unstaked.service';
import { MenstrualSubscriptionService } from './menstrual-subscription/menstrual-subscription.service';
import { config } from '../config';
import { config } from 'src/config';

@Module({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion src/schedulers/unstaked/unstaked.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
retrieveUnstakedAmount,
} from '@debionetwork/polkadot-provider';
import { strToMilisecond } from '@common/tools';
import { config } from '../../config';
import { config } from 'src/config';

@Injectable()
export class UnstakedService implements OnModuleInit {
Expand Down
Loading