Skip to content

Commit ce0708c

Browse files
Add modules
1 parent 80fa9df commit ce0708c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Module } from '@nestjs/common'
2+
import { MongooseModule } from '@nestjs/mongoose'
3+
import { CrontabsSchema, Crontabs } from './schemas/crontabs.schema'
4+
import { CrontabsService } from './crontabs.service'
5+
import { CrontabsController } from './crontabs.controller'
6+
7+
@Module({
8+
imports: [
9+
MongooseModule.forFeatureAsync([
10+
{
11+
name: Crontabs.name,
12+
useFactory: () => CrontabsSchema,
13+
},
14+
]),
15+
],
16+
providers: [CrontabsService],
17+
controllers: [CrontabsController],
18+
})
19+
export class CrontabsModule {}

0 commit comments

Comments
 (0)