Typo with ExpressJS tutorial

I would just like to point out that there is a typo within the following article: REST API Design Best Practices Handbook – How to Build a REST API with JavaScript, Node.js, and Express.js

The problem is at the code block after UUID installation (search for npm i uuid).

Instead of:

const getAllWorkouts = () => {
  return DB.workouts;

It should be:

const getAllWorkouts = () => {
    const allWorkouts = Workout.getAllWorkouts();
    return allWorkouts;

Not sure how to get hold of the OP (I don’t have social media), so I thought of just posting it here. Hopefully someone can notify him.


Thanks for bringing this to our attention - we’ll check it out/update it!