Skip to content

Commit 4ac219e

Browse files
committed
filter workspaces out
1 parent d7a0ee4 commit 4ac219e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ export class WorkspaceServiceAPI implements ServiceImpl<typeof WorkspaceServiceI
3737
context.signal.addEventListener("abort", async () => {
3838
await it.throw(new Error("abort"));
3939
});
40-
4140
for await (const info of it) {
4241
if (!info) {
4342
continue;
4443
}
44+
if (req.id && info.workspaceId !== req.id) {
45+
continue;
46+
}
4547
const response = new WatchWorkspaceResponse();
4648
response.item = this.apiConverter.toWorkspace(info);
4749
yield response;

0 commit comments

Comments
 (0)