-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmigration.module.ts
More file actions
23 lines (22 loc) · 971 Bytes
/
migration.module.ts
File metadata and controls
23 lines (22 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Module } from "@nestjs/common";
import { MigrationController } from "./migration.controller";
import { LogsService } from "../logs/logs.service";
import { MongooseModule } from "@nestjs/mongoose";
import { Log, LogSchema } from "../logs/schemas/log.schema";
import { LastSync, LastSyncSchema } from "../logs/schemas/last-sync.schema";
import { MigrationService } from "./migration.service";
import { MigrationAccount, MigrationAccountSchema } from "./schemas/migration-account.schema";
import { PremiumModule } from "../premium/premium.module";
@Module({
controllers: [MigrationController],
providers: [LogsService, MigrationService],
imports: [
MongooseModule.forFeature([
{ name: Log.name, schema: LogSchema },
{ name: LastSync.name, schema: LastSyncSchema },
{ name: MigrationAccount.name, schema: MigrationAccountSchema },
]),
PremiumModule,
],
})
export class MigrationModule { };