From 9df038ba409caf8652f6f05ee5fbfecf90790164 Mon Sep 17 00:00:00 2001 From: Behzad-rabiei Date: Thu, 13 Mar 2025 11:38:42 +0100 Subject: [PATCH] feat: extend the timout --- src/controllers/hivemind.controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/hivemind.controller.ts b/src/controllers/hivemind.controller.ts index 52a3ace..5b3c75a 100644 --- a/src/controllers/hivemind.controller.ts +++ b/src/controllers/hivemind.controller.ts @@ -7,6 +7,7 @@ import { catchAsync } from '../utils'; const askQuestion = catchAsync(async function (req: IAuthRequest, res: Response) { console.debug('Body', req.body.communityId, req.body.question); + req.setTimeout(5 * 60 * 1000); const awnser = await HivemindTemporalService.triggerWorkflow(req.body.communityId, req.body.question, false); res.status(httpStatus.OK).send({ awnser }); });