refactor: simplify user upsert logic in seed script

This commit is contained in:
2025-11-12 19:41:04 +01:00
parent e7d761e4ad
commit 9475a811e7
+1 -2
View File
@@ -4,7 +4,7 @@ import { getPasswordHash } from "@/lib/security"
const prisma = new PrismaClient()
async function main() {
const user = await prisma.user.upsert({
await prisma.user.upsert({
where: {
email: "admin@localhost",
},
@@ -18,7 +18,6 @@ async function main() {
isActive: true,
},
})
console.log(user)
}
main()