fix typo in update endpoint
This commit is contained in:
parent
bc7331ee64
commit
c389dcf95f
@ -43,7 +43,7 @@ app.group("/api", (app) => {
|
||||
({ body: { food, id } }) => {
|
||||
if (data.foods[id] === undefined) {
|
||||
return {
|
||||
status: "errror",
|
||||
status: "error",
|
||||
message: `${id} does not exist.`,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user