up
This commit is contained in:
@@ -14,6 +14,7 @@ import { UploaderModule } from './modules/uploader/uploader.module';
|
|||||||
import { AdminModule } from './modules/admin/admin.module';
|
import { AdminModule } from './modules/admin/admin.module';
|
||||||
// import { CacheService } from './modules/utils/cache.service';
|
// import { CacheService } from './modules/utils/cache.service';
|
||||||
import { ThrottlerModule } from '@nestjs/throttler';
|
import { ThrottlerModule } from '@nestjs/throttler';
|
||||||
|
import { ScheduleModule } from '@nestjs/schedule';
|
||||||
import { RestaurantsModule } from './modules/restaurants/restaurants.module';
|
import { RestaurantsModule } from './modules/restaurants/restaurants.module';
|
||||||
import { FoodModule } from './modules/foods/food.module';
|
import { FoodModule } from './modules/foods/food.module';
|
||||||
import { CartModule } from './modules/cart/cart.module';
|
import { CartModule } from './modules/cart/cart.module';
|
||||||
@@ -48,6 +49,7 @@ import { OrdersModule } from './modules/orders/orders.module';
|
|||||||
limit: 5, // max requests per window
|
limit: 5, // max requests per window
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
|
ScheduleModule.forRoot(),
|
||||||
RestaurantsModule,
|
RestaurantsModule,
|
||||||
FoodModule,
|
FoodModule,
|
||||||
CartModule,
|
CartModule,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
||||||
import { ScheduleModule } from '@nestjs/schedule';
|
|
||||||
import { OrdersService } from './orders.service';
|
import { OrdersService } from './orders.service';
|
||||||
import { OrdersController } from './orders.controller';
|
import { OrdersController } from './orders.controller';
|
||||||
import { Order } from './entities/order.entity';
|
import { Order } from './entities/order.entity';
|
||||||
@@ -18,7 +17,6 @@ import { JwtModule } from '@nestjs/jwt';
|
|||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
ScheduleModule,
|
|
||||||
MikroOrmModule.forFeature([Order, OrderItem, User, Restaurant, Food, UserAddress, PaymentMethod]),
|
MikroOrmModule.forFeature([Order, OrderItem, User, Restaurant, Food, UserAddress, PaymentMethod]),
|
||||||
CartModule,
|
CartModule,
|
||||||
UtilsModule,
|
UtilsModule,
|
||||||
|
|||||||
Reference in New Issue
Block a user