mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-28 10:49:45 +02:00
Rework triggers with arrays (#7168)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user