File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export class MigrationService {
8686
8787 // Get commit history
8888 const log = await git . log ( )
89- const commits = log . all . reverse ( ) // Oldest first
89+ const commits = [ ... log . all ] . reverse ( ) // Oldest first
9090
9191 if ( commits . length === 0 ) {
9292 this . log ( `[MigrationService#migrateTask] no commits found for task ${ taskId } , skipping` )
Original file line number Diff line number Diff line change @@ -301,6 +301,11 @@ export class PatchCheckpointService extends EventEmitter {
301301 from = this . baseSnapshot
302302 }
303303
304+ // Ensure from is defined (TypeScript safety)
305+ if ( ! from ) {
306+ throw new Error ( "Unable to determine source checkpoint" )
307+ }
308+
304309 // Get the source state
305310 const sourceState =
306311 from === this . baseSnapshot ? await this . getBaseSnapshotState ( ) : await this . getCheckpointState ( from )
You can’t perform that action at this time.
0 commit comments