From dac8cc33d9da1158b0170575dbca72eca8349ad2 Mon Sep 17 00:00:00 2001 From: lim Date: Mon, 26 Feb 2024 14:11:14 +0900 Subject: [PATCH] [backend] Add password to protected room in seed --- backend/prisma/seed.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/prisma/seed.ts b/backend/prisma/seed.ts index e124983d..65e99452 100644 --- a/backend/prisma/seed.ts +++ b/backend/prisma/seed.ts @@ -55,6 +55,7 @@ async function seedRooms(users) { data: { name: 'Room 2', accessLevel: 'PROTECTED', + password: bcrypt.hashSync('password', roundsOfHashing), users: { create: [ { userId: user1.id, role: 'MEMBER' },