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
844 B
29 lines
844 B
import { forwardRef, Module } from '@nestjs/common'
|
|
import { MongooseModule } from '@nestjs/mongoose'
|
|
import { User, UserSchema } from './schemas/user.schema'
|
|
import { UsersController } from './users.controller'
|
|
import { UsersService } from './users.service'
|
|
import { BillingModule } from 'src/billing/billing.module'
|
|
import { Device, DeviceSchema } from 'src/gateway/schemas/device.schema'
|
|
import { MailModule } from 'src/mail/mail.module'
|
|
|
|
@Module({
|
|
imports: [
|
|
MongooseModule.forFeature([
|
|
{
|
|
name: User.name,
|
|
schema: UserSchema,
|
|
},
|
|
{
|
|
name: Device.name,
|
|
schema: DeviceSchema,
|
|
},
|
|
]),
|
|
forwardRef(() => BillingModule),
|
|
MailModule,
|
|
],
|
|
controllers: [UsersController],
|
|
providers: [UsersService],
|
|
exports: [MongooseModule, UsersService],
|
|
})
|
|
export class UsersModule {}
|