File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
components/server/src/workspace Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1423,11 +1423,11 @@ export class WorkspaceStarter {
1423
1423
}
1424
1424
}
1425
1425
1426
- let volumeSnapshotId = lastValidWorkspaceInstanceId ;
1427
- // if this is snapshot or prebuild context, then try to find volume snapshot id in it
1428
- if ( SnapshotContext . is ( workspace . context ) || WithPrebuild . is ( workspace . context ) ) {
1429
- volumeSnapshotId = workspace . context . snapshotBucketId ;
1430
- }
1426
+ const volumeSnapshotId =
1427
+ SnapshotContext . is ( workspace . context ) || WithPrebuild . is ( workspace . context )
1428
+ ? workspace . context . snapshotBucketId
1429
+ : lastValidWorkspaceInstanceId ;
1430
+
1431
1431
let volumeSnapshotInfo = new VolumeSnapshotInfo ( ) ;
1432
1432
const volumeSnapshots = await this . workspaceDb . trace ( traceCtx ) . findVolumeSnapshotById ( volumeSnapshotId ) ;
1433
1433
if ( volumeSnapshots !== undefined ) {
You can’t perform that action at this time.
0 commit comments