Skip to content

Commit

Permalink
fix: leave user will can not login (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored May 6, 2024
1 parent bf6084d commit b500631
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/service/support/user/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit b500631

Please sign in to comment.