refactor(server): 修复函数名拼写错误

- 将 consturctServer 函数名更正为 constructServer
- 更新调用处的函数名称以保持一致性
This commit is contained in:
LaoShui 2026-03-14 19:24:52 +08:00
parent 3647fc5fa0
commit 7b2507e43d

View File

@ -133,7 +133,7 @@ async function checkVersion() {
* @param {ModuleDefinition[]} [moduleDefs] Customized module definitions [advanced]
* @returns {Promise<import("express").Express>} The server instance.
*/
async function consturctServer(moduleDefs) {
async function constructServer(moduleDefs) {
const app = express()
const { CORS_ALLOW_ORIGIN } = process.env
app.set('trust proxy', true)
@ -359,7 +359,7 @@ async function serveNcmApi(options) {
)
}
})
const constructServerSubmission = consturctServer(options.moduleDefs)
const constructServerSubmission = constructServer(options.moduleDefs)
const [_, app] = await Promise.all([
checkVersionSubmission,