diff --git a/netlify/functions/joke.js b/netlify/functions/joke.js index 5ef6d1b..a07759a 100644 --- a/netlify/functions/joke.js +++ b/netlify/functions/joke.js @@ -1,7 +1,7 @@ // Jokes provided from the lovely folks at https://icanhazdadjoke.com import jokes from './jokes.json' -export const handler = (event) => { +export const handler = async () => { // Generates a random index based on the length of the jokes array const randomIndex = Math.floor(Math.random() * jokes.length) const randomJoke = jokes[randomIndex]