Skip to content

Commit

Permalink
fix: createBookの引数
Browse files Browse the repository at this point in the history
  • Loading branch information
acutus-fujii committed Jan 3, 2025
1 parent d9ce295 commit 6fa13e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function seed() {
}

const createdBooks = (await Promise.all(
books.map((book) => createBook(creatorId, book))
books.map((book) => createBook(creatorId, book, [{ userId: creatorId, roleId: 1 }]))
)) as BookSchema[];

// TODO: upsert時の一意性の問題が解決したら `Promise.all()` 等に修正して。
Expand Down

0 comments on commit 6fa13e4

Please sign in to comment.