From b500631a4d887b20520e9c09ed42427962608621 Mon Sep 17 00:00:00 2001 From: Archer <545436317@qq.com> Date: Mon, 6 May 2024 10:41:01 +0800 Subject: [PATCH] fix: leave user will can not login (#1345) --- packages/service/support/user/controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/service/support/user/controller.ts b/packages/service/support/user/controller.ts index a76092770..9510abfc4 100644 --- a/packages/service/support/user/controller.ts +++ b/packages/service/support/user/controller.ts @@ -22,7 +22,10 @@ export async function getUserDetail({ }): Promise { const tmb = await (async () => { if (tmbId) { - return getTmbInfoByTmbId({ tmbId }); + try { + const result = await getTmbInfoByTmbId({ tmbId }); + return result; + } catch (error) {} } if (userId) { return getUserDefaultTeam({ userId });