From cb2a5ee32b5c6865ea08576122c4d28208749eb1 Mon Sep 17 00:00:00 2001 From: tnagorra Date: Mon, 15 Apr 2024 13:42:35 +0545 Subject: [PATCH] Fix import for prisma client --- lib/prisma.ts | 2 +- lib/xml/helpers.ts | 2 +- lib/xml/sign.ts | 2 +- pages/api/user/alertingAuthorities.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/prisma.ts b/lib/prisma.ts index 38de33f..54afb94 100644 --- a/lib/prisma.ts +++ b/lib/prisma.ts @@ -1,4 +1,4 @@ -import { PrismaClient } from ".prisma/client"; +import { PrismaClient } from "@prisma/client"; declare global { var prisma: PrismaClient | undefined; diff --git a/lib/xml/helpers.ts b/lib/xml/helpers.ts index 6ca76a2..6e42f21 100644 --- a/lib/xml/helpers.ts +++ b/lib/xml/helpers.ts @@ -1,4 +1,4 @@ -import { Alert } from ".prisma/client"; +import { Alert } from "@prisma/client"; import { Capgen } from "capgen"; import { XMLBuilder } from "fast-xml-parser"; diff --git a/lib/xml/sign.ts b/lib/xml/sign.ts index f0753ca..c596824 100644 --- a/lib/xml/sign.ts +++ b/lib/xml/sign.ts @@ -1,7 +1,7 @@ import { webcrypto } from "node:crypto"; import { Application, Parse, SignedXml } from "xmldsigjs"; -import { Alert } from ".prisma/client"; +import { Alert } from "@prisma/client"; import { getPrivateKey } from "../crypto"; import { formatAlertAsXML } from "./helpers"; import { CAPV12JSONSchema } from "../types/cap.schema"; diff --git a/pages/api/user/alertingAuthorities.ts b/pages/api/user/alertingAuthorities.ts index 38c9d38..7741aad 100644 --- a/pages/api/user/alertingAuthorities.ts +++ b/pages/api/user/alertingAuthorities.ts @@ -1,4 +1,4 @@ -import { AlertingAuthority } from ".prisma/client"; +import { AlertingAuthority } from "@prisma/client"; import { randomBytes, randomUUID } from "crypto"; import type { NextApiRequest, NextApiResponse } from "next"; import { getServerSession } from "next-auth";