Property 'res' does not exist on type ctx

I was following along Josh's tutorial(attached below; he writes the code at the 10:10 min mark) and I faced a small problem here where it says (Property 'res' does not exist on type '{ db: PrismaClient<PrismaClientOptions, never, DefaultArgs>; }') I attached a pic of my code and how josh's code look. How can I access these parameters and change them??? github repo for the project: https://github.com/ProfMoriartey/usta-sushi Josh's video: https://www.youtube.com/watch?v=ljsxNQ-nPog&t=886s
GitHub
GitHub - ProfMoriartey/usta-sushi
Contribute to ProfMoriartey/usta-sushi development by creating an account on GitHub.
Josh tried coding
YouTube
Building a Modern Restaurant Booking Software: Admin Authentication...
Let's authenticate the admin in our modern NextJS and React based restaurant booking software. We'll do this using JWT on the edge by verifying them inside of NextJS middleware. That is super fast and also relatively easy to implement. We will also authenticate our tRPC API routes so that not just anybody can perform requests to them later. ⭐ T...
No description
1 Reply
Maxi Calderón
Maxi Calderón12mo ago
Hi, could you figure out this problem? I´m trying to do the same.
Want results from more Discord servers?
Add your server