Skip to content

Commit

Permalink
fix ts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 4, 2022
1 parent fd3094a commit 11b339a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 84 deletions.
27 changes: 14 additions & 13 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ async function seed() {
},
});

await prisma.note.createMany({
data: [
{
title: "My first note",
body: "Hello, world!",
userId: user.id,
},
{
title: "My second note",
body: "Hello, world!",
userId: user.id,
},
],
await prisma.note.create({
data: {
title: "My first note",
body: "Hello, world!",
userId: user.id,
},
});

await prisma.note.create({
data: {
title: "My second note",
body: "Hello, world!",
userId: user.id,
},
});

console.log(`Database has been seeded. 🌱`);
Expand Down
71 changes: 0 additions & 71 deletions server.ts

This file was deleted.

0 comments on commit 11b339a

Please sign in to comment.