Fix queries for $in: [null, ...etc] in pg (#7253)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-12-02 23:20:26 +07:00
committed by GitHub
parent 44e55f3f61
commit 1526ae2055
3 changed files with 26 additions and 3 deletions
@@ -0,0 +1,6 @@
/**
* @public
*/
export const githubConfiguration = {
ResolveThreadSupported: false
}
@@ -41,6 +41,7 @@ import { Analytics } from '@hcengineering/analytics'
import { PullRequestReviewThreadEvent } from '@octokit/webhooks-types'
import config from '../config'
import { syncConfig } from './syncConfig'
import { githubConfiguration } from './configuration'
export type ReviewThreadData = Pick<
GithubReviewThread,
@@ -362,7 +363,7 @@ export class ReviewThreadSyncManager implements DocSyncManager {
if (Object.keys(platformUpdate).length > 0) {
// Check and update external
if (platformUpdate.isResolved !== undefined) {
if (platformUpdate.isResolved !== undefined && githubConfiguration.ResolveThreadSupported) {
const okit = (await this.provider.getOctokit(account as Ref<PersonAccount>)) ?? container.container.octokit
const q = `mutation updateReviewThread($threadID: ID!) {
${platformUpdate.isResolved ? 'resolveReviewThread' : 'unresolveReviewThread'} (