From 224723413a9e190fe57027fc8a76204830a58546 Mon Sep 17 00:00:00 2001 From: Kamto Date: Mon, 29 Apr 2024 15:35:25 +0800 Subject: [PATCH] fix: remove the plus sign in front of the phone number (#5801) --- packages/connectors/connector-feishu-web/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connectors/connector-feishu-web/src/index.ts b/packages/connectors/connector-feishu-web/src/index.ts index a2b25b2f929..56ed8cccc99 100644 --- a/packages/connectors/connector-feishu-web/src/index.ts +++ b/packages/connectors/connector-feishu-web/src/index.ts @@ -153,7 +153,7 @@ export function getUserInfo(getConfig: GetConnectorConfig): GetUserInfo { avatar, email: conditional(email), userId: conditional(user_id), - phone: conditional(mobile), + phone: conditional(mobile?.replace('+', '')), rawData: jsonGuard.parse(response.body), }; } catch (error: unknown) {