prisma / prisma-examples

🚀 Ready-to-run Prisma example projects

Home Page:https://www.prisma.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chore(typescript/rest-nestjs): remove unused dependency

TLOWAC opened this issue · comments

Hi :)
I noticed an unused INestApplication dependency in the typescript/rest-nestjs example project.
I've removed the unused INestApplication import from the codebase.
If my contribution is helpful to you, that would be great!

import { Injectable, OnModuleInit, INestApplication } from '@nestjs/common' // `INestApplication` unused !
import { PrismaClient } from '@prisma/client'

@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit {
  async onModuleInit() {
    // Note: this is optional
    await this.$connect()
  }
}