release: 1.2.0
TallyNote release / linux-x64 (push) Failing after 13s

This commit is contained in:
Qiufeng
2026-09-05 08:42:47 +08:00
parent fa2fd94579
commit 620362823b
9 changed files with 120 additions and 195 deletions
-2
View File
@@ -63,7 +63,6 @@ import {
readCachedRelease,
writeUpdateRequest,
cancelUpdateJob,
triggerInProcessDownload,
type UpdateRequest,
} from "./update-service.js";
@@ -1181,7 +1180,6 @@ export async function buildApp(database: DatabaseContext, config: AppConfig) {
database.sqlite.prepare("UPDATE update_jobs SET status='failed', error_message=?, updated_at=? WHERE id=?").run("无法创建系统更新请求", Date.now(), id);
throw new AppError(503, "UPDATE_QUEUE_FAILED", "无法提交更新请求,请检查服务安装权限");
}
triggerInProcessDownload(database.sqlite, config, id, cachedAsset, cachedAsset.sha256);
reply.header("Cache-Control", "no-store");
return reply.code(202).send({ job: { id, status: "queued", operation: "download", version } });
});