From 58cc9855e180cbdb524fd50d806d87dd6e1e9a04 Mon Sep 17 00:00:00 2001 From: FinleyGe Date: Thu, 30 Oct 2025 21:33:37 +0800 Subject: [PATCH] fix: install --- modules/tool/api/upload/install.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/tool/api/upload/install.ts b/modules/tool/api/upload/install.ts index 2a427989..0b6a5ef2 100644 --- a/modules/tool/api/upload/install.ts +++ b/modules/tool/api/upload/install.ts @@ -9,9 +9,11 @@ import { MongoPlugin, pluginTypeEnum } from '@/mongo/models/plugins'; import { refreshVersionKey } from '@/cache'; import { SystemCacheKeyEnum } from '@/cache/type'; import { addLog } from '@/utils/log'; +import { ensureDir } from '@/utils/fs'; export default s.route(contract.tool.upload.install, async ({ body }) => { addLog.debug(`Installing tools: ${body.urls}`); + await ensureDir(tempPkgDir); const downloadFunctions = body.urls.map((url) => async () => { const res = await fetch(url); const buffer = await res.arrayBuffer();