Remove unused dep

This commit is contained in:
Kiran 2022-02-18 12:57:08 +05:30
parent da117e162d
commit 0c37d02d40
6 changed files with 640 additions and 1717 deletions

View File

@ -1,15 +0,0 @@
import { PrismaClient } from '@prisma/client';
let prisma: PrismaClient;
if (process.env.NODE_ENV === 'production') {
prisma = new PrismaClient();
} else {
if (!global.prisma) {
global.prisma = new PrismaClient();
}
prisma = global.prisma;
}
export default prisma;

2308
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,14 +8,11 @@
"lint": "next lint"
},
"dependencies": {
"@prisma/client": "^3.7.0",
"axios": "^0.24.0",
"next": "12.0.10",
"node-fetch": "^3.2.0",
"rambda": "^7.0.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"rsuite": "^5.5.2",
"webpack-filter-warnings-plugin": "^1.2.1",
"xml2js": "^0.4.23",
"xmlbuilder": "^15.1.1"

View File

@ -1,8 +1,5 @@
import { PrismaClient } from '@prisma/client';
import type { NextApiRequest, NextApiResponse } from 'next';
const prisma = new PrismaClient();
type User = {
id: number;
first_name: string;

View File

@ -1,8 +1,5 @@
import { PrismaClient } from '@prisma/client';
import type { NextApiRequest, NextApiResponse } from 'next';
const prisma = new PrismaClient();
type User = {
id: number,
first_name: string,

View File

@ -1,25 +0,0 @@
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
first_name String
last_name String
email String
}
model App {
id String @id @default(uuid())
name String
description String?
certificate String?
acs_url String
entity_id String
}