diff --git a/learn/developers/caching-with-harper.mdx b/learn/developers/caching-with-harper.mdx index 567ce76e..c8383603 100644 --- a/learn/developers/caching-with-harper.mdx +++ b/learn/developers/caching-with-harper.mdx @@ -335,8 +335,7 @@ Here is the complete `resources.js` for this guide: // resources.js const jokeAPI = { - async get() { - const id = this.getId(); + async get(id) { const response = await fetch(`https://official-joke-api.appspot.com/jokes/${id}`); return response.json(); },