Skip to content

Commit a1fc587

Browse files
committed
partly revert ws api svc changes
1 parent e65cc4e commit a1fc587

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/server/src/workspace/workspace-service.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,8 @@ export class WorkspaceService {
233233
}
234234

235235
async getWorkspace(userId: string, workspaceId: string): Promise<WorkspaceInfo> {
236-
const [workspace, latestInstance] = await Promise.all([
237-
this.doGetWorkspace(userId, workspaceId),
238-
this.db.findCurrentInstance(workspaceId),
239-
]);
236+
const workspace = await this.doGetWorkspace(userId, workspaceId);
237+
const latestInstance = await this.db.findCurrentInstance(workspaceId);
240238

241239
return {
242240
workspace,

0 commit comments

Comments
 (0)