From b42d1cc7ecbcc812d11df6c63740d4854729cdab Mon Sep 17 00:00:00 2001 From: Mohamad Fadhil Date: Tue, 8 Jul 2025 03:23:43 +0800 Subject: [PATCH] error --- hono/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hono/src/index.ts b/hono/src/index.ts index 48d79c0..aeb4bfa 100644 --- a/hono/src/index.ts +++ b/hono/src/index.ts @@ -8,7 +8,7 @@ app.post('/transfer', async (c) => { const { amount, from, to } = body; if (amount <= 0) { - return c.json({ error: 'Amount must be greater than 0' }, 400); + return c.json({ error: 'Amount must be greater than 0' }, 40); } const transfer = { @@ -17,7 +17,7 @@ app.post('/transfer', async (c) => { to } - console.log(transfer); + console.log('transfer', transfe); return c.json(transfer) })