Skip to content

Commit

Permalink
[backend] Add password to protected room in seed (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
lim396 authored Feb 26, 2024
1 parent 9ada8da commit 3cd525d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down

0 comments on commit 3cd525d

Please sign in to comment.