mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 12:04:56 +02:00
UBERF-8469: Fix exit from github service (#6921)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -60,6 +60,9 @@ export class UsersSyncManager implements DocSyncManager {
|
||||
repositories: GithubIntegrationRepository[]
|
||||
): Promise<void> {
|
||||
for (const repo of repositories) {
|
||||
if (this.provider.isClosing()) {
|
||||
break
|
||||
}
|
||||
const syncKey = `${repo._id}:users`
|
||||
if (
|
||||
repo.githubProject === undefined ||
|
||||
@@ -107,6 +110,9 @@ export class UsersSyncManager implements DocSyncManager {
|
||||
)
|
||||
try {
|
||||
for await (const data of assignableUsersIterator) {
|
||||
if (this.provider.isClosing()) {
|
||||
break
|
||||
}
|
||||
const users: UserInfo[] = data.repository[key]?.nodes ?? []
|
||||
for (const d of users) {
|
||||
if (d.login !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user