fix: add emailVerified in seed script (#13530)
Co-authored-by: Keith Williams <keithwillcode@gmail.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
This commit is contained in:
1 file changed
+3
@@ -120,6 +120,7 @@ async function createOrganizationAndAddMembersAndTeams({
|
||||
...(await prisma.user.create({
|
||||
data: {
|
||||
...member.memberData,
|
||||
emailVerified: new Date(),
|
||||
password: await hashPassword(member.memberData.password),
|
||||
},
|
||||
})),
|
||||
@@ -146,6 +147,7 @@ async function createOrganizationAndAddMembersAndTeams({
|
||||
username: user.username,
|
||||
name: user.name,
|
||||
email: user.email,
|
||||
emailVerified: new Date(),
|
||||
password: await hashPassword(user.username),
|
||||
},
|
||||
});
|
||||
@@ -253,6 +255,7 @@ async function createOrganizationAndAddMembersAndTeams({
|
||||
data: {
|
||||
...nonOrgMember,
|
||||
password: await hashPassword(nonOrgMember.password),
|
||||
emailVerified: new Date(),
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user