fix
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'reflect-metadata';
|
||||
|
||||
import {HttpAdapterHost, NestFactory, Reflector} from '@nestjs/core';
|
||||
import {AppModule} from './app.module';
|
||||
import * as cookieParser from 'cookie-parser';
|
||||
|
||||
@@ -4,12 +4,14 @@ import {PostsController} from './posts.controller';
|
||||
import {TypeOrmModule} from "@nestjs/typeorm";
|
||||
import User from "../users/entities/user.entity";
|
||||
import Post from "./entities/post.entity";
|
||||
import PostsSearchService from "./postsSearch.service";
|
||||
import {SearchModule} from "../search/search.module";
|
||||
|
||||
@Module({
|
||||
controllers: [PostsController],
|
||||
imports: [TypeOrmModule.forFeature([Post])],
|
||||
providers: [PostsService],
|
||||
exports: [PostsService],
|
||||
imports: [TypeOrmModule.forFeature([Post]), SearchModule],
|
||||
providers: [PostsService, PostsSearchService],
|
||||
exports: [PostsService, PostsSearchService],
|
||||
})
|
||||
export class PostsModule {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user