From edded8441465321d08ca043cb218e77f04eea19c Mon Sep 17 00:00:00 2001 From: arpandhakal Date: Mon, 3 Nov 2025 15:06:50 +0545 Subject: [PATCH] fix(OUT-2542): client home action items task app count fixed. - appended a param of companyId of the logged in client while fetching task count. This causes the tasks api to return only those tasks that are assigned to the logged in client/company. --- src/utils/copilotApiUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/copilotApiUtils.ts b/src/utils/copilotApiUtils.ts index 0d7238c..c05063a 100644 --- a/src/utils/copilotApiUtils.ts +++ b/src/utils/copilotApiUtils.ts @@ -111,6 +111,7 @@ export class CopilotAPI { ) baseUrl.searchParams.set('limit', '1000000') baseUrl.searchParams.set('parentTaskId', 'null') + companyId && baseUrl.searchParams.set('companyId', companyId) //only includes assignned task to the logged in client. const todoUrl = new URL(baseUrl) todoUrl.searchParams.set('status', 'todo')