Widget Devoir Finition

This commit is contained in:
alma 2026-01-24 14:10:58 +01:00
parent f413d65538
commit 957e70a160

View File

@ -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;