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

Replaces dummy with placeholder #217

Merged
merged 2 commits into from
Oct 20, 2023
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file contains dummy data that you'll be replacing with real data in Chapter 7.
// This file contains placeholder data that you'll be replacing with real data in Chapter 7.
const users = [
{
id: 1,
Expand Down
4 changes: 2 additions & 2 deletions dashboard/15-final/scripts/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {
customers,
revenue,
users,
} = require('../app/lib/dummy-data.js');
} = require('../app/lib/placeholder-data.js');
const bcrypt = require('bcrypt');

async function seedUsers() {
Expand Down Expand Up @@ -142,7 +142,7 @@ async function seedRevenue() {
(rev) => sql`
INSERT INTO revenue (month, revenue)
VALUES (${rev.month}, ${rev.revenue})
ON CONFLICT (month) DO NOTHING;
ON CONFLICT (month) DO NOTHING;
`,
),
);
Expand Down
2 changes: 1 addition & 1 deletion dashboard/15-final/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"app/lib/dummy-data.js",
"app/lib/placeholder-data.js",
"scripts/seed.js"
],
"exclude": ["node_modules"]
Expand Down
109 changes: 54 additions & 55 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading