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> {
|
}): Promise<UserType> {
|
||||||
const tmb = await (async () => {
|
const tmb = await (async () => {
|
||||||
if (tmbId) {
|
if (tmbId) {
|
||||||
return getTmbInfoByTmbId({ tmbId });
|
try {
|
||||||
|
const result = await getTmbInfoByTmbId({ tmbId });
|
||||||
|
return result;
|
||||||
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
if (userId) {
|
if (userId) {
|
||||||
return getUserDefaultTeam({ userId });
|
return getUserDefaultTeam({ userId });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user