Widget Devoir Finition
This commit is contained in:
parent
f413d65538
commit
957e70a160
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user