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(