Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { ConfigModule } from '@nestjs/config'; import { BullModule } from '@nestjs/bull'; import { SavingsController } from './savings.controller'; import { SavingsService } from './savings.service'; import { UserSavings, UserSavingsSchema } from '../../database/schemas/user-savings.schema'; import { User, UserSchema } from '../../database/schemas/user.schema'; import { UserInteraction, UserInteractionSchema } from '../../database/schemas/user-interaction.schema'; import { Product, ProductSchema } from '../../database/schemas/product.schema'; import { Coupon, CouponSchema } from '../../database/schemas/coupon.schema'; import { SavingsAnalyticsService } from './services/savings-analytics.service'; import { GamificationService } from './services/gamification.service'; import { SustainabilityService } from './services/sustainability.service'; import { GoalsService } from './services/goals.service'; import { AchievementsService } from './services/achievements.service'; import { SavingsProcessor } from './processors/savings.processor'; import { AIModule } from '../ai/ai.module'; @Module({ imports: [ ConfigModule, AIModule, MongooseModule.forFeature([ { name: UserSavings.name, schema: UserSavingsSchema }, { name: User.name, schema: UserSchema }, { name: UserInteraction.name, schema: UserInteractionSchema }, { name: Product.name, schema: ProductSchema }, { name: Coupon.name, schema: CouponSchema }, ]), BullModule.registerQueue({ name: 'savings-processing', }), ], controllers: [SavingsController], providers: [ SavingsService, SavingsAnalyticsService, GamificationService, SustainabilityService, GoalsService, AchievementsService, SavingsProcessor, ], exports: [ SavingsService, SavingsAnalyticsService, GamificationService, SustainabilityService, GoalsService, AchievementsService, ], }) export class SavingsModule {} |