From 633625e7be2bc9bd0cdfe3445accd75714c9a1a7 Mon Sep 17 00:00:00 2001 From: HotelSync Date: Mon, 6 Apr 2026 12:38:43 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20deposit=20release=20=E2=80=94=20read=20c?= =?UTF-8?q?aptured=5Famount=20(snake=5Fcase)=20from=20request=20body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- backend/src/routes/deposit.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/deposit.ts b/backend/src/routes/deposit.ts index 6cbcba9..a499b75 100644 --- a/backend/src/routes/deposit.ts +++ b/backend/src/routes/deposit.ts @@ -194,7 +194,7 @@ const deposit: FastifyPluginAsync = async (fastify) => { ) // ── POST /api/hotels/:slug/bookings/:bookingId/deposit/release ──────────── - fastify.post( + fastify.post( '/api/hotels/:slug/bookings/:bookingId/deposit/release', { onRequest: [fastify.authenticate] }, async (request, reply) => { @@ -205,7 +205,7 @@ const deposit: FastifyPluginAsync = async (fastify) => { const hotelId = await getHotelId(slug) if (!hotelId) return reply.code(404).send({ error: 'Hotel not found' }) - const { capturedAmount, reason } = request.body + const { captured_amount: capturedAmount, reason } = request.body // Get active deposit const { rows: depRows } = await db.query(