Skip to content

Instantly share code, notes, and snippets.

🐶
woof woof!

Alberto Zanotti albizan

  • Torino, Italy
Block or report user

Report or block albizan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.