diff --git a/Code/backend/app.js b/Code/backend/app.js index 545fc66b..0d35f799 100644 --- a/Code/backend/app.js +++ b/Code/backend/app.js @@ -52,8 +52,9 @@ const PORT = process.env.PORT || 5000; app.listen( PORT, console.log( - `Server running in ${process.env.NODE_ENV} mode on port ${PORT}`.yellow.bold - ) + `Server running in ${process.env.NODE_ENV} mode on port ${PORT}`.yellow + .bold, + ), ); module.exports = { diff --git a/Code/backend/controllers/recipe.js b/Code/backend/controllers/recipe.js index da9f1b49..9719d199 100644 --- a/Code/backend/controllers/recipe.js +++ b/Code/backend/controllers/recipe.js @@ -92,7 +92,7 @@ async function getRecipes({ return { recipesList, totalNumRecipes }; } catch (e) { console.error( - `Unable to convert cursor to array or problem counting documents, ${e}` + `Unable to convert cursor to array or problem counting documents, ${e}`, ); return { recipesList: [], totalNumRecipes: 0 }; } @@ -151,7 +151,7 @@ async function apiPostRecipes(req, res, next) { } catch (err) { console.log(err); throw new Error.BadRequestError( - "There is something wrong with the Add Recipe Form" + "There is something wrong with the Add Recipe Form", ); } } @@ -201,7 +201,7 @@ async function apiGetRecipes(req, res, next) { } catch (error) { console.log(error); throw new Error.BadRequestError( - "There was error processing your queries. Please try again" + "There was error processing your queries. Please try again", ); } } diff --git a/Code/backend/models/recipe.js b/Code/backend/models/recipe.js index e6a2dbf1..53f8f60c 100644 --- a/Code/backend/models/recipe.js +++ b/Code/backend/models/recipe.js @@ -37,7 +37,7 @@ const recipeSchema = new Schema( ref: "user", }, }, - { collection: "recipe" } + { collection: "recipe" }, ); const Recipe = mongoose.model("Recipe", recipeSchema);