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;