Skip to content

Commit

Permalink
fix: resource id in netlify function
Browse files Browse the repository at this point in the history
  • Loading branch information
jmetz committed Feb 8, 2024
1 parent 8a39e05 commit 789af00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/generate_name.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function sample(array){

function generate_name(starts, animals){
const animal = sample(animals);
return {name: `${sample(starts)}-${animal[0]}`, icon: animal[1]};
return {id: `${sample(starts)}-${animal[0]}`, icon: animal[1]};
}


Expand Down

0 comments on commit 789af00

Please sign in to comment.