Skip to content

Commit 6271103

Browse files
brendan-kellammsukkari
authored andcommitted
Connection management (#183)
1 parent 7a8ac0a commit 6271103

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/backend/src/connectionManager.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,15 @@ export class ConnectionManager implements IConnectionManager {
9696
return [];
9797
}
9898
}
99-
})();
99+
)();
100+
101+
// Filter out any duplicates by external_id and external_codeHostUrl.
102+
repoData.filter((repo, index, self) => {
103+
return index === self.findIndex(r =>
104+
r.external_id === repo.external_id &&
105+
r.external_codeHostUrl === repo.external_codeHostUrl
106+
);
107+
})
100108

101109
// Filter out any duplicates by external_id and external_codeHostUrl.
102110
repoData.filter((repo, index, self) => {

0 commit comments

Comments
 (0)