Skip to content

Commit

Permalink
force consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparkallas authored Oct 26, 2023
1 parent f77a4df commit 2196e6f
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions apps/backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { PaymentVerificationModule } from './payment-verification/payment-verifi
import { SuperTokenAccountingModule } from './super-token-accounting/super-token-accounting.module';
import { SuperfluidStripeConverterModule } from './superfluid-stripe-converter/superfluid-stripe-converter.module';
import { HealthModule } from './health/health.module';
import { registerStripeModule } from './stripeModuleConfig';
import { registerStripeModule } from './stripe-module-config';

const registerConfigModule = () =>
ConfigModule.forRoot({
Expand All @@ -24,7 +24,7 @@ const registerBullModule = () =>
host: configService.getOrThrow('REDIS_HOST'),
port: configService.getOrThrow('REDIS_PORT'),
password: configService.get('REDIS_PASSWORD'),
username: configService.get('REDIS_USER')
username: configService.get('REDIS_USER'),
},
defaultJobOptions: {
attempts: 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
import { CheckoutSessionController } from './checkout-session.controller';
import { CheckoutSessionProcesser } from './checkout-session.processer';
import { registerQueueModule } from './checkout-session.queue';
import { registerStripeModule } from 'src/stripeModuleConfig';
import { registerStripeModule } from 'src/stripe-module-config';
import { SuperfluidStripeConverterModule } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.module';

@Module({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { InjectStripeClient } from '@golevelup/nestjs-stripe';
import Stripe from 'stripe';
import { AddressSchema, CreateSessionData } from './checkout-session.controller';
import { SuperfluidStripeConverterService } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.service';
import { DEFAULT_PAGING } from 'src/stripeModuleConfig';
import { DEFAULT_PAGING } from 'src/stripe-module-config';
import { z } from 'zod';

export const CHECKOUT_SESSION_JOB_NAME = 'checkout-session';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
import { PaymentVerificationProcessor } from './payment-verification.processor';
import { PaymentVerificationService } from './payment-verification.service';
import { registerQueueModules } from './payment-verification.queue';
import { registerStripeModule } from 'src/stripeModuleConfig';
import { registerStripeModule } from 'src/stripe-module-config';
import { SuperTokenAccountingModule } from 'src/super-token-accounting/super-token-accounting.module';
import { SuperfluidStripeConverterModule } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.module';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import Stripe from 'stripe';
import _ from 'lodash';
import { SuperTokenAccountingService } from 'src/super-token-accounting/super-token-accounting.service';
import { SuperfluidStripeConverterService } from 'src/superfluid-stripe-converter/superfluid-stripe-converter.service';
import { DEFAULT_PAGING } from 'src/stripeModuleConfig';
import { DEFAULT_PAGING } from 'src/stripe-module-config';
import {
SuperfluidStripeSubscriptionsMetadata,
SuperfluidStripeSubscriptionsMetadataSchema,
} from 'src/checkout-session/checkout-session.processer';
import stringify from 'safe-stable-stringify';
import { currencyDecimalMapping } from 'src/currencies';
import { currencyDecimalMapping } from 'src/stripe-currencies';
import { formatUnits } from 'viem';

export const PAYMENT_VERIFICATION_JOB_NAME = 'verify-customer-invoice-payments-by-super-token';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/backend/src/stripe-listener/stripe-listener.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { InjectQueue } from '@nestjs/bullmq';
import { Queue } from 'bullmq';
import { StripeModule } from '@golevelup/nestjs-stripe';
import { PaymentVerificationModule } from 'src/payment-verification/payment-verification.module';
import { registerStripeModule } from 'src/stripeModuleConfig';
import { registerStripeModule } from 'src/stripe-module-config';

@Module({
imports: [registerQueueModule(), registerStripeModule(), PaymentVerificationModule],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { InjectStripeClient } from '@golevelup/nestjs-stripe';
import Stripe from 'stripe';
import { PAYMENT_VERIFICATION_JOB_NAME } from 'src/payment-verification/payment-verification.processor';
import { PaymentVerificationService } from 'src/payment-verification/payment-verification.service';
import { DEFAULT_PAGING } from 'src/stripeModuleConfig';
import { DEFAULT_PAGING } from 'src/stripe-module-config';

export const STRIPE_LISTENER_JOB_NAME = 'poll-new-invoices';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ describe('SuperfluidStripeConverterController', () => {
controllers: [SuperfluidStripeConverterController],
}).compile();

controller = module.get<SuperfluidStripeConverterController>(SuperfluidStripeConverterController);
controller = module.get<SuperfluidStripeConverterController>(
SuperfluidStripeConverterController,
);
});

it('should be defined', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Module } from '@nestjs/common';
import { SuperfluidStripeConverterController } from './superfluid-stripe-converter.controller';
import { SuperfluidStripeConverterService } from './superfluid-stripe-converter.service';
import { registerStripeModule } from 'src/stripeModuleConfig';
import { registerStripeModule } from 'src/stripe-module-config';

@Module({
imports: [registerStripeModule()],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import Stripe from 'stripe';
import {
ChainToSuperTokenReceiverMap,
defaultChainToSuperTokenReceiverMap,
} from './price-conversion-strategy/ChainToSuperTokenReceiverMap';
} from './price-conversion-strategy/chain-to-super-token-receiver-map';
import {
StripeCurrencyToSuperTokenMap,
defaultStripeCurrencyToSuperTokenMap,
} from './price-conversion-strategy/StripeCurrencyToSuperTokenMap';
} from './price-conversion-strategy/stripe-currency-to-super-token-map';
import { ChainId, PaymentOption, ProductDetails, WidgetProps } from '@superfluid-finance/widget';
import { currencyDecimalMapping } from 'src/currencies';
import { currencyDecimalMapping } from 'src/stripe-currencies';
import { formatUnits } from 'viem';

type Input = {
Expand Down
3 changes: 2 additions & 1 deletion apps/backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true
}
}

0 comments on commit 2196e6f

Please sign in to comment.