From f3e6e5087592017eed8913f3663f3dfc05ba9e56 Mon Sep 17 00:00:00 2001 From: Chethan Date: Tue, 5 Dec 2023 00:19:31 +0530 Subject: [PATCH] remove error propagation --- crates/pm_auth/src/connector/plaid/transformers.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/pm_auth/src/connector/plaid/transformers.rs b/crates/pm_auth/src/connector/plaid/transformers.rs index 34d63dde98ed..5e1ad67aead0 100644 --- a/crates/pm_auth/src/connector/plaid/transformers.rs +++ b/crates/pm_auth/src/connector/plaid/transformers.rs @@ -32,16 +32,12 @@ impl TryFrom<&types::LinkTokenRouterData> for PlaidLinkTokenRequest { field_name: "country_codes", }, )?, - language: item.request.language.clone().ok_or( - errors::ConnectorError::MissingRequiredField { - field_name: "language", - }, - )?, + language: item.request.language.clone().unwrap_or("en".to_string()), products: vec!["auth".to_string()], user: User { client_user_id: item.request.user_info.clone().ok_or( errors::ConnectorError::MissingRequiredField { - field_name: "user.client_user_id", + field_name: "country_codes", }, )?, },