Skip to content

Commit d1b3639

Browse files
committed
Setup admin and email verification in the database seed script.
1 parent 9b7a089 commit d1b3639

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

prisma/seed.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ async function main() {
2020
where: {
2121
id: 1,
2222
},
23-
update: {},
23+
update: {
24+
isAdmin: true,
25+
isVerified: true,
26+
},
2427
create: {
2528
email: process.env.SEED_ADMIN_EMAIL,
2629
password: passwordHash,

0 commit comments

Comments
 (0)