diff --git a/src/test.ts b/src/test.ts deleted file mode 100644 index 08d1635..0000000 --- a/src/test.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { prisma } from "../lib/prisma"; - -async function main() { - // Fetch all users with their posts - // const allUsers = await prisma.realEstateArticle.findMany(); - console.log("test"); - const test = await prisma.realEstateArticle.findMany(); - console.log(test); - // console.log("All users:", JSON.stringify(allUsers, null, 2)); -} - -main() - .then(async () => { - await prisma.$disconnect(); - }) - .catch(async (e) => { - console.error(e); - await prisma.$disconnect(); - process.exit(1); - }); diff --git a/test.ts b/test.ts deleted file mode 100644 index 58dec7f..0000000 --- a/test.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { prisma } from "./lib/prisma"; - -async function main() { - // Fetch all users with their posts - // const allUsers = await prisma.realEstateArticle.findMany(); - console.log("test"); - const test = await prisma.realEstateArticle.findMany(); - console.log(test); - // console.log("All users:", JSON.stringify(allUsers, null, 2)); -} - -main() - .then(async () => { - await prisma.$disconnect(); - }) - .catch(async (e) => { - console.error(e); - await prisma.$disconnect(); - process.exit(1); - });