fix(web): update Feishu parameter naming convention
- Rename Feishu credential parameters to use consistent naming with feishu_ prefix - Update app_id to feishu_app_id for clarity and consistency - Update app_secret to feishu_app_secret for clarity and consistency - Update folder_token to feishu_folder_token for clarity and consistency - Ensure validation logic uses updated parameter names - Improves parameter naming consistency across the codebase
This commit is contained in:
@@ -404,12 +404,12 @@ const CreateModal = forwardRef<CreateModalRef, CreateModalRefProps>(({
|
||||
} else if (platform === 'feishu') {
|
||||
// Validate Feishu credentials
|
||||
const feishuParams = {
|
||||
app_id: formValues.parser_config?.app_id,
|
||||
app_secret: formValues.parser_config?.app_secret,
|
||||
folder_token: formValues.parser_config?.folder_token
|
||||
feishu_app_id: formValues.parser_config?.app_id,
|
||||
feishu_app_secret: formValues.parser_config?.app_secret,
|
||||
feishu_folder_token: formValues.parser_config?.folder_token
|
||||
};
|
||||
|
||||
if (!feishuParams.app_id || !feishuParams.app_secret || !feishuParams.folder_token) {
|
||||
if (!feishuParams.feishu_app_id || !feishuParams.feishu_app_secret || !feishuParams.feishu_folder_token) {
|
||||
messageApi.error(t('knowledgeBase.feishuAuthRequired'));
|
||||
setLoading(false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user