Skip to content

Commit

Permalink
fix(crwa): Add missing quotes to seed example (#11651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Oct 5, 2024
1 parent 1939f55 commit cc867c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
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: '[email protected] },
// { name: 'Bob', email: '[email protected] },
// { name: 'Alice', email: '[email protected]' },
// { name: 'Bob', email: '[email protected]' },
// ]
//
// 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: '[email protected] },
// { name: 'Bob', email: '[email protected] },
// { name: 'Alice', email: '[email protected]' },
// { name: 'Bob', email: '[email protected]' },
// ]
//
// 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: '[email protected] },
// { name: 'Bob', email: '[email protected] },
// { name: 'Alice', email: '[email protected]' },
// { name: 'Bob', email: '[email protected]' },
// ]
//
// await db.user.createMany({ data: users })
Expand Down

0 comments on commit cc867c3

Please sign in to comment.