Skip to content

Commit

Permalink
fixing breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tvt15 committed Oct 19, 2023
1 parent 9c34dc6 commit e66df66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Code/backend/controllers/recipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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 };
}
Expand Down Expand Up @@ -143,7 +143,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"
);
}
}
Expand Down Expand Up @@ -194,7 +194,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"
);
}
}
Expand Down

0 comments on commit e66df66

Please sign in to comment.