fix: remove account create log

This commit is contained in:
David Nguyen
2024-01-30 18:26:46 +11:00
parent 7e15058a3a
commit 9427143951
4 changed files with 1 additions and 13 deletions

View File

@ -18,16 +18,6 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
error: '/signin',
},
events: {
createUser: async ({ user }) => {
await prisma.userSecurityAuditLog.create({
data: {
userId: user.id,
ipAddress,
userAgent,
type: UserSecurityAuditLogType.ACCOUNT_CREATE,
},
});
},
signIn: async ({ user }) => {
await prisma.userSecurityAuditLog.create({
data: {