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:
authored and GitHub committed 2024-02-06 10:33:47 -03:00
1 parent bab182960f
commit bba68e09a9
1 file changed
+3
+3
View File
@@ -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(),
},
})
);