Skip to content

Instantly share code, notes, and snippets.

🐶
woof woof!

Alberto Zanotti albizan

  • Torino, Italy
View GitHub Profile
View role.entity.ts
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
import { User } from './user.entity';
@Entity()
export class Role {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column({
@albizan
albizan / config.module.ts
Last active Apr 3, 2019
How to Inject configService in main.ts ?
View config.module.ts
import { Module } from '@nestjs/common';
import { ConfigService } from './config.service';
@Module({
providers: [
{
provide: ConfigService,
useValue: new ConfigService(`${process.env.NODE_ENV}.env`),
},
],
You can’t perform that action at this time.