main
Some checks failed
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-03-14 14:01:01 +03:00
parent 0fefbe6859
commit dee6e29cfd
37 changed files with 1925 additions and 157 deletions

22
test-anon.ts Normal file
View File

@@ -0,0 +1,22 @@
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function test() {
try {
const newAnon = await prisma.user.create({
data: {
email: 'anonymous@contenthunter.system' + Date.now(),
password: 'system-anonymous-no-login',
firstName: 'Anonymous',
},
});
console.log("Success:", newAnon);
} catch (e: any) {
console.error("Prisma Error:", e);
} finally {
await prisma.$disconnect();
}
}
test();