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