fix try catch logic in upgrade command (#10616)
This commit is contained in:
@ -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}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const dataSource =
|
|
||||||
await this.twentyORMGlobalManager.getDataSourceForWorkspace(
|
|
||||||
workspaceId,
|
|
||||||
false,
|
|
||||||
);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const dataSource =
|
||||||
|
await this.twentyORMGlobalManager.getDataSourceForWorkspace(
|
||||||
|
workspaceId,
|
||||||
|
false,
|
||||||
|
);
|
||||||
|
|
||||||
await this.runOnWorkspace({
|
await this.runOnWorkspace({
|
||||||
options,
|
options,
|
||||||
workspaceId,
|
workspaceId,
|
||||||
|
|||||||
Reference in New Issue
Block a user