From d9b58d193e6c468c7828c39aa15dd3b5562f282a Mon Sep 17 00:00:00 2001 From: Alma Date: Sat, 12 Apr 2025 15:19:44 +0200 Subject: [PATCH] working leantime widget 52 --- app/api/leantime/tasks/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/leantime/tasks/route.ts b/app/api/leantime/tasks/route.ts index c9209578..39a5374a 100644 --- a/app/api/leantime/tasks/route.ts +++ b/app/api/leantime/tasks/route.ts @@ -67,12 +67,12 @@ async function getLeantimeUserId(email: string): Promise { } const users = data.result; - const user = users.find((u: any) => u.email === email); + const user = users.find((u: any) => u.username === email); if (user) { - console.log('Found Leantime user:', { id: user.id, email: user.email }); + console.log('Found Leantime user:', { id: user.id, username: user.username }); } else { - console.log('No Leantime user found for email:', email); + console.log('No Leantime user found for username:', email); } return user ? user.id : null;