From 8b43744f4c2246f2dc75c20a50030d148e9ae626 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Thu, 8 Jan 2026 01:42:34 -0800 Subject: [PATCH] fix(backend): Downgrade cors for fastify 4 compat and enable auto-seeding --- backend/prisma/seed.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/prisma/seed.ts b/backend/prisma/seed.ts index a1e73b2..4656556 100644 --- a/backend/prisma/seed.ts +++ b/backend/prisma/seed.ts @@ -1,4 +1,5 @@ import { PrismaClient, RoomType, SectionType } from '@prisma/client'; +import * as bcrypt from 'bcrypt'; const prisma = new PrismaClient(); @@ -56,7 +57,7 @@ async function main() { await prisma.user.create({ data: { email: ownerEmail, - passwordHash: 'password123', + passwordHash: await bcrypt.hash('password123', 10), name: 'Travis', role: 'OWNER', // Enum fallback roleId: ownerRole?.id,