working leantime widget 52

This commit is contained in:
Alma 2025-04-12 15:19:44 +02:00
parent 682795ee22
commit d9b58d193e

View File

@ -67,12 +67,12 @@ async function getLeantimeUserId(email: string): Promise<number | null> {
}
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;