fix: preserve upgrade runner logs
This commit is contained in:
@@ -271,7 +271,7 @@ function updateState(patch) {
|
|||||||
...state,
|
...state,
|
||||||
...patch,
|
...patch,
|
||||||
updatedAt: new Date().toISOString(),
|
updatedAt: new Date().toISOString(),
|
||||||
logs: state.logs || [],
|
logs: patch.logs || state.logs || [],
|
||||||
};
|
};
|
||||||
ensureDir(path.dirname(stateFile));
|
ensureDir(path.dirname(stateFile));
|
||||||
const tempFile = `${stateFile}.tmp`;
|
const tempFile = `${stateFile}.tmp`;
|
||||||
|
|||||||
Reference in New Issue
Block a user