Rework triggers with arrays (#7168)

This commit is contained in:
Andrey Sobolev
2024-11-13 21:25:57 +07:00
committed by GitHub
parent 3837e68589
commit e493d35ac6
78 changed files with 2006 additions and 1871 deletions
+1 -3
View File
@@ -141,9 +141,7 @@ export class PlatformWorker {
for (const [workspace, users] of workspaces) {
const worker = this.clients.get(workspace)
if (worker !== undefined) {
await this.ctx.with('syncUsers', {}, async (ctx) => {
await worker.syncUserData(ctx, users)
})
await this.ctx.with('syncUsers', {}, (ctx) => worker.syncUserData(ctx, users))
}
}
this.periodicSyncPromise = undefined
@@ -998,8 +998,8 @@ export class IssueSyncManager extends IssueSyncManagerBase implements DocSyncMan
const response: any = await this.ctx.with(
'graphql.listIssue',
{ prj: prj.name, repo: repo.name },
async () =>
await integration.octokit.graphql(
() =>
integration.octokit.graphql(
`query listIssues {
nodes(ids: [${idsp}] ) {
... on Issue {
+2 -2
View File
@@ -1125,8 +1125,8 @@ export class GithubWorker implements IntegrationManager {
const docs = await this.ctx.with(
'find-doc-sync-info',
{},
async (ctx) =>
await this._client.findAll<DocSyncInfo>(
(ctx) =>
this._client.findAll<DocSyncInfo>(
github.class.DocSyncInfo,
{
needSync: { $ne: githubSyncVersion },