fix try catch logic in upgrade command (#10616)

This commit is contained in:
Etienne
2025-03-03 16:37:39 +01:00
committed by GitHub
parent 9300f0a29b
commit b8d944bd6e

View File

@ -123,13 +123,13 @@ export abstract class ActiveOrSuspendedWorkspacesMigrationCommandRunner<
`Running command on workspace ${workspaceId} ${index + 1}/${activeWorkspaceIds.length}`, `Running command on workspace ${workspaceId} ${index + 1}/${activeWorkspaceIds.length}`,
); );
try {
const dataSource = const dataSource =
await this.twentyORMGlobalManager.getDataSourceForWorkspace( await this.twentyORMGlobalManager.getDataSourceForWorkspace(
workspaceId, workspaceId,
false, false,
); );
try {
await this.runOnWorkspace({ await this.runOnWorkspace({
options, options,
workspaceId, workspaceId,