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

chapter 7: fetching data from latest invoice #777

Open
Kofiastro opened this issue Jun 30, 2024 · 4 comments
Open

chapter 7: fetching data from latest invoice #777

Kofiastro opened this issue Jun 30, 2024 · 4 comments

Comments

@Kofiastro
Copy link

Kofiastro commented Jun 30, 2024

After fetching data from latest invoice section it loops through one particular name of customer 5 times without generating 5 different names of customers with different description.
Screenshot 2024-06-30 at 15 31 06

@CutlerRU
Copy link

CutlerRU commented Jul 1, 2024

I am not getting this result. I would suggest double checking the data.ts scripts or maybe something is not being passed correctly to the LatestInvoices component. You could also try copying the original latest-invoices.tsx to see if that resolves this issue.

I only followed the steps provided in Chapter 7. If the code changes don't fix it, you could also try re-seeding your database.

image

@Kofiastro
Copy link
Author

I copied the new placeholder-data.tsx, data.ts .I tried re-seeding. Still getting the same issue. @CutlerRU if you can share your files for me to use that instead.

@Khodijah99
Copy link

After fetching data from latest invoice section it loops through one particular name of customer 5 times without generating 5 different names of customers with different description. Screenshot 2024-06-30 at 15 31 06

I'm having the same problem. How can we solve this, please?

@Malavsp
Copy link

Malavsp commented Jul 3, 2024

@Kofiastro @Khodijah99
As you had already connected to vercel postgresDB then, try to delete all tables by writing query as below

DROP TABLE USERS, CUSTOMERS, INVOICES, REVENUE

And re-seed by running

npm run seed

or

pnpm seed 

Hope it solves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants