From c389dcf95f991cd9fd5771b6d59fa0422ed3a501 Mon Sep 17 00:00:00 2001 From: Syahdan Date: Tue, 27 May 2025 21:15:47 +0700 Subject: [PATCH] fix typo in update endpoint --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7f9d706..85c4124 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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.`, }; }