fix: use patch 0 as fallback when no previous installation
0 means no local installation on launcher Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
96eb5f754d
commit
f55868dd00
1 changed files with 3 additions and 4 deletions
|
|
@ -81,10 +81,9 @@ export async function checkPatchesUpdate(
|
||||||
// Update detected
|
// Update detected
|
||||||
state[patchline] = { lastVersion: currentVersion, lastPatchId: patchId, lastCheck: new Date().toISOString() }
|
state[patchline] = { lastVersion: currentVersion, lastPatchId: patchId, lastCheck: new Date().toISOString() }
|
||||||
|
|
||||||
// Fetch patch size
|
// Fetch patch size (0 means no local installation)
|
||||||
const patchSize = lastState?.lastPatchId !== undefined
|
const fromPatch = lastState?.lastPatchId ?? 0
|
||||||
? await getPatchSize(patchline, lastState.lastPatchId, patchId)
|
const patchSize = await getPatchSize(patchline, fromPatch, patchId)
|
||||||
: undefined
|
|
||||||
|
|
||||||
updates.push({
|
updates.push({
|
||||||
patchline,
|
patchline,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue