Skip to content

Instantly share code, notes, and snippets.

@kerren
Last active August 16, 2020 20:31
Show Gist options
  • Save kerren/0916457f0f6135f229070e2bf2fc08f8 to your computer and use it in GitHub Desktop.
Save kerren/0916457f0f6135f229070e2bf2fc08f8 to your computer and use it in GitHub Desktop.
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DatabaseModule } from 'modules/database/database.module';
import { User } from 'modules/shared/entities/user.entity';
import { UserService } from './services/user.service';
@Module({
imports: [DatabaseModule, TypeOrmModule.forFeature([User], Config.get.databases.main.name)],
exports: [DatabaseModule, UserService],
providers: [UserService]
})
export class SharedModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment