epicweb-dev / full-stack-foundations

Learn the foundational skills of building full stack web applications.
https://epicweb.dev/workshops/full-stack-foundations
Other
598 stars 154 forks source link

Invalid code diff given in "07. ERROR HANDLING / 02. HANDLE THROWN RESPONSES (💪 PROBLEM)" #63

Closed ACregan closed 11 months ago

ACregan commented 11 months ago

image

The code diff shown would result in :

        const user = await getUser(request)
    const user = await requireUser(request)

... which is not valid code (cannot redeclare a const).