fix: use fetchUploadConfig instead of getUploadConfig

This commit is contained in:
axibayuit
2025-12-30 20:45:58 +08:00
parent e973c65e9c
commit 9898364227
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
*/
import { HuggingFaceAPI } from '../../utils/huggingfaceAPI.js';
import { getUploadConfig } from '../../utils/sysConfig.js';
import { fetchUploadConfig } from '../../utils/sysConfig.js';
import { getDatabase } from '../../utils/databaseAdapter.js';
import { moderateContent, endUpload } from '../../upload/uploadTools.js';
@@ -35,7 +35,7 @@ export async function onRequestPost(context) {
}
// 获取 HuggingFace 配置
const uploadConfig = await getUploadConfig(env);
const uploadConfig = await fetchUploadConfig(env);
const hfSettings = uploadConfig.huggingface;
if (!hfSettings || !hfSettings.channels || hfSettings.channels.length === 0) {