You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
import { Module, forwardRef } from '@nestjs/common'
|
|
import { BillingController } from './billing.controller'
|
|
import { BillingService } from './billing.service'
|
|
import { PlanSchema } from './schemas/plan.schema'
|
|
import { SubscriptionSchema } from './schemas/subscription.schema'
|
|
import { Plan } from './schemas/plan.schema'
|
|
import { Subscription } from './schemas/subscription.schema'
|
|
import { MongooseModule } from '@nestjs/mongoose'
|
|
import { AuthModule } from 'src/auth/auth.module'
|
|
import { UsersModule } from 'src/users/users.module'
|
|
import { GatewayModule } from 'src/gateway/gateway.module'
|
|
import { PolarWebhookPayload, PolarWebhookPayloadSchema } from './schemas/polar-webhook-payload.schema'
|
|
|
|
@Module({
|
|
imports: [
|
|
MongooseModule.forFeature([
|
|
{ name: Plan.name, schema: PlanSchema },
|
|
{ name: Subscription.name, schema: SubscriptionSchema },
|
|
{ name: PolarWebhookPayload.name, schema: PolarWebhookPayloadSchema },
|
|
]),
|
|
forwardRef(() => AuthModule),
|
|
forwardRef(() => UsersModule),
|
|
forwardRef(() => GatewayModule),
|
|
],
|
|
controllers: [BillingController],
|
|
providers: [BillingService],
|
|
exports: [BillingService],
|
|
})
|
|
export class BillingModule {}
|