1988673f80
- add Role decorator
10 lines
258 B
TypeScript
10 lines
258 B
TypeScript
import { Injectable, OnModuleInit } from "@nestjs/common";
|
|
import { PrismaClient } from "@prisma/client";
|
|
|
|
@Injectable()
|
|
export class PrismaService extends PrismaClient implements OnModuleInit {
|
|
async onModuleInit() {
|
|
await this.$connect();
|
|
}
|
|
}
|