fix(update): hapus referensi info.* di handler POST (info is not defined)
All checks were successful
CI / test (push) Successful in 1m44s

This commit is contained in:
oxpoe
2026-11-05 09:11:36 +07:00
parent fe7682fa45
commit 8231058f79

View File

@@ -4664,8 +4664,6 @@ router.post('/update/run', requireAdminSession, restrictToAdmin, (req, res) => {
const _repo = String(getSetting('update_repo', 'oxpoe/open-isp') || '').trim();
const _base = String(getSetting('update_base_url', 'https://gitea.oxpoe.xyz') || '').trim().replace(/\/+$/, '');
info.repo = _repo || 'origin';
info.baseUrl = _base;
const fetch = _repo
? runCmd('git', ['fetch', '--prune', _base + '/' + _repo + '.git', branch], repoRoot, 120000)
: runCmd('git', ['fetch', '--prune'], repoRoot);