Fix upgrade command updating version during dry run (#12909)

Fix upgrade command updating version during dry run
This commit is contained in:
Weiko
2025-06-26 15:41:13 +02:00
committed by GitHub
parent ac71cc3233
commit 142ca6b468

View File

@ -114,10 +114,13 @@ export abstract class UpgradeCommandRunner extends ActiveOrSuspendedWorkspacesMi
await this.syncWorkspaceMetadataCommand.runOnWorkspace(args);
await this.runAfterSyncMetadata(args);
await this.workspaceRepository.update(
{ id: workspaceId },
{ version: this.currentAppVersion.version },
);
if (!options.dryRun) {
await this.workspaceRepository.update(
{ id: workspaceId },
{ version: this.currentAppVersion.version },
);
}
this.logger.log(
chalk.blue(`Upgrade for workspace ${workspaceId} completed.`),
);