UBERF-10637: Fix duplication on github with few integerations added

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-05-16 17:55:19 +07:00
parent 633da96b8e
commit 84754f77a4
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -807,7 +807,8 @@ export class PlatformWorker {
}
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>()