Skip to content

Commit

Permalink
fix: use hard coded values in seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
ematala committed Apr 30, 2023
1 parent 5abf600 commit 816b76f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ const seed = async () => {
title: "🗑️ Müll",
description: "Müll rausbringen",
},
].map(async (data) => await prisma.duty.create({ data }))
].map(
async ({ title, description }, idx) =>
await prisma.duty.create({ data: { id: idx, title, description } })
)
);

await Promise.all(
Expand Down

0 comments on commit 816b76f

Please sign in to comment.