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}`,
);
const dataSource =
await this.twentyORMGlobalManager.getDataSourceForWorkspace(
workspaceId,
false,
);
try {
const dataSource =
await this.twentyORMGlobalManager.getDataSourceForWorkspace(
workspaceId,
false,
);
await this.runOnWorkspace({
options,
workspaceId,