fix: bypass prisma type errors and fix bcryptjs types

This commit is contained in:
AyrisAI
2026-05-15 19:34:17 +03:00
parent a1b74ec195
commit ae0b856336
3 changed files with 14 additions and 6 deletions

View File

@@ -29,9 +29,9 @@ async function main() {
const adminUsername = 'admin';
const hashedPassword = await bcrypt.hash('admin', 10);
const existingUser = await prisma.user.findUnique({ where: { username: adminUsername } });
const existingUser = await (prisma as any).user.findUnique({ where: { username: adminUsername } });
if (!existingUser) {
await prisma.user.create({
await (prisma as any).user.create({
data: {
username: adminUsername,
password: hashedPassword,