UBERF-10637: Fix duplication on github with few integerations added (#8970)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-05-16 18:22:50 +07:00 committed by GitHub
parent b1120d63c1
commit ede948676f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -807,7 +807,8 @@ export class PlatformWorker {
} }
async getWorkspaces (): Promise<WorkspaceUuid[]> { async getWorkspaces (): Promise<WorkspaceUuid[]> {
return this.integrations.map((it) => it.workspace) // Since few integeration could map into one workspace, we need to deduplicate
return Array.from(new Set(this.integrations.map((it) => it.workspace)))
} }
checkedWorkspaces = new Set<string>() checkedWorkspaces = new Set<string>()