From 1addd22a243519a3aaf79e73653aba368bd81c3c Mon Sep 17 00:00:00 2001 From: BOHA Date: Tue, 24 Mar 2026 11:26:32 +0100 Subject: [PATCH] fix: lock timeout 10s to match heartbeat interval --- src/routes/admin/quotations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/admin/quotations.ts b/src/routes/admin/quotations.ts index 3b47f78..3b614a8 100644 --- a/src/routes/admin/quotations.ts +++ b/src/routes/admin/quotations.ts @@ -17,7 +17,7 @@ import { getNextOfferNumber, } from '../../services/offers.service'; -const LOCK_TIMEOUT_MS = 30 * 1000; // 30 seconds — lock expires if no heartbeat +const LOCK_TIMEOUT_MS = 10 * 1000; // 10 seconds — lock expires if no heartbeat export default async function quotationsRoutes(fastify: FastifyInstance): Promise {