From 957e70a160de271f56458588389913b21efb2702 Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 24 Jan 2026 14:10:58 +0100 Subject: [PATCH] Widget Devoir Finition --- app/api/leantime/tasks/route.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/api/leantime/tasks/route.ts b/app/api/leantime/tasks/route.ts index 82d5519..292ae4d 100644 --- a/app/api/leantime/tasks/route.ts +++ b/app/api/leantime/tasks/route.ts @@ -185,6 +185,15 @@ export async function GET(request: NextRequest) { throw new Error('Invalid response format from Leantime'); } + // Log RAW data from Leantime to see exact status values (using console.log so it shows in production) + console.log('[LEANTIME_TASKS] 🔍 RAW DATA FROM LEANTIME API:', JSON.stringify(data.result.map((task: any) => ({ + id: task.id, + headline: task.headline, + status: task.status, + statusType: typeof task.status, + editorId: task.editorId, + })), null, 2)); + // Log detailed status information before filtering const statusBreakdownBefore = data.result.reduce((acc: any, task: any) => { const status = task.status;