working leantime widget 52
This commit is contained in:
parent
682795ee22
commit
d9b58d193e
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user