20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { UsersService} from './users.service';
|
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { getTypeOrmConfig } from '../config/config.service';
|
|
import { MatchLog, User } from '../model/user.entity';
|
|
|
|
@Module({
|
|
imports:
|
|
[
|
|
TypeOrmModule.forRoot(getTypeOrmConfig()),
|
|
TypeOrmModule.forFeature([User]),
|
|
TypeOrmModule.forFeature([MatchLog]),
|
|
// TypeOrmModule.forFeature([UserRepository]),
|
|
],
|
|
providers:[UsersService],
|
|
exports: [UsersService],
|
|
})
|
|
export class UsersModule {}
|