Formatted code and clean up

This commit is contained in:
2022-06-06 14:59:53 +07:00
parent 8b066dde58
commit 573040362d
29 changed files with 2208 additions and 1556 deletions
+3 -5
View File
@@ -1,11 +1,10 @@
import { PrismaClient } from '@prisma/client';
class Prisma {
public client: PrismaClient;
constructor () {
this.client = new PrismaClient;
constructor() {
this.client = new PrismaClient();
}
public init(): void {
@@ -15,7 +14,6 @@ class Prisma {
public end(): void {
this.client.$disconnect();
}
}
export default new Prisma();
export default new Prisma();