Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(crwa): Add missing quotes to seed example #11651

Merged
merged 3 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changesets/11651.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- fix(crwa): Add missing quotes to seed example (#11651) by @Tobbe

Just un-commenting the example seed code now gives you valid code to seed your database with
4 changes: 2 additions & 2 deletions __fixtures__/test-project/scripts/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export default async () => {
// Create your database records here! For example, seed some users:
//
// const users = [
// { name: 'Alice', email: 'alice@redwoodjs.com },
// { name: 'Bob', email: 'bob@redwoodjs.com },
// { name: 'Alice', email: 'alice@redwoodjs.com' },
// { name: 'Bob', email: 'bob@redwoodjs.com' },
// ]
//
// await db.user.createMany({ data: users })
Expand Down
4 changes: 2 additions & 2 deletions packages/create-redwood-app/templates/js/scripts/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default async () => {
// Create your database records here! For example, seed some users:
//
// const users = [
// { name: 'Alice', email: 'alice@redwoodjs.com },
// { name: 'Bob', email: 'bob@redwoodjs.com },
// { name: 'Alice', email: 'alice@redwoodjs.com' },
// { name: 'Bob', email: 'bob@redwoodjs.com' },
// ]
//
// await db.user.createMany({ data: users })
Expand Down
4 changes: 2 additions & 2 deletions packages/create-redwood-app/templates/ts/scripts/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default async () => {
// Create your database records here! For example, seed some users:
//
// const users = [
// { name: 'Alice', email: 'alice@redwoodjs.com },
// { name: 'Bob', email: 'bob@redwoodjs.com },
// { name: 'Alice', email: 'alice@redwoodjs.com' },
// { name: 'Bob', email: 'bob@redwoodjs.com' },
// ]
//
// await db.user.createMany({ data: users })
Expand Down
Loading