fix: leave user will can not login (#1345)
This commit is contained in:
parent
bf6084da69
commit
b500631a4d
@ -22,7 +22,10 @@ export async function getUserDetail({
|
||||
}): Promise<UserType> {
|
||||
const tmb = await (async () => {
|
||||
if (tmbId) {
|
||||
return getTmbInfoByTmbId({ tmbId });
|
||||
try {
|
||||
const result = await getTmbInfoByTmbId({ tmbId });
|
||||
return result;
|
||||
} catch (error) {}
|
||||
}
|
||||
if (userId) {
|
||||
return getUserDefaultTeam({ userId });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user