refactor: migrate checkEmailConfig to TypeScript and update imports

This commit is contained in:
Danny Avila 2025-08-20 01:07:31 -04:00
parent ab4596206f
commit 550bf56077
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
8 changed files with 27 additions and 32 deletions

View file

@ -1,12 +1,11 @@
const { webSearchKeys } = require('@librechat/api');
const { logger } = require('@librechat/data-schemas');
const { isEnabled, webSearchKeys, checkEmailConfig } = require('@librechat/api');
const {
Constants,
extractVariableName,
deprecatedAzureVariables,
conflictingAzureVariables,
extractVariableName,
} = require('librechat-data-provider');
const { isEnabled, checkEmailConfig } = require('~/server/utils');
const { logger } = require('~/config');
const secretDefaults = {
CREDS_KEY: 'f34be427ebb29de8d88c107a71546019685ed8b241d8f2ed00c3df97ad2566f0',
@ -76,7 +75,7 @@ async function checkHealth() {
if (response?.ok && response?.status === 200) {
logger.info(`RAG API is running and reachable at ${process.env.RAG_API_URL}.`);
}
} catch (error) {
} catch {
logger.warn(
`RAG API is either not running or not reachable at ${process.env.RAG_API_URL}, you may experience errors with file uploads.`,
);