mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
fix: leave user will can not login (#1345)
This commit is contained in:
@@ -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 });
|
||||
|
Reference in New Issue
Block a user