mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-24 05:12:24 +02:00
Fix okit.graphql is not a function (#10442)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -61,6 +61,7 @@ import {
|
||||
} from './githubTypes'
|
||||
import { GithubIssueData, IssueSyncManagerBase, WithMarkup } from './issueBase'
|
||||
import {
|
||||
ensureGraphQLOctokit,
|
||||
errorToObj,
|
||||
getSinceRaw,
|
||||
gqlp,
|
||||
@@ -975,6 +976,8 @@ export class PullRequestSyncManager extends IssueSyncManagerBase implements DocS
|
||||
okit: Octokit,
|
||||
account: PersonId
|
||||
): Promise<boolean> {
|
||||
const graphqlOkit = ensureGraphQLOctokit(okit, container)
|
||||
|
||||
let { state, stateReason, body, ...issueUpdate } = await this.collectIssueUpdate(
|
||||
info,
|
||||
existing,
|
||||
@@ -1006,7 +1009,7 @@ export class PullRequestSyncManager extends IssueSyncManagerBase implements DocS
|
||||
workspace: this.provider.getWorkspaceId()
|
||||
})
|
||||
if (isGHWriteAllowed()) {
|
||||
await okit.graphql(
|
||||
await graphqlOkit.graphql(
|
||||
`
|
||||
mutation updatePullRequest($issue: ID!, $body: String!) {
|
||||
updatePullRequest(input: {
|
||||
@@ -1040,7 +1043,7 @@ export class PullRequestSyncManager extends IssueSyncManagerBase implements DocS
|
||||
workspace: this.provider.getWorkspaceId()
|
||||
})
|
||||
if (isGHWriteAllowed()) {
|
||||
await okit.graphql(
|
||||
await graphqlOkit.graphql(
|
||||
`
|
||||
mutation updatePullRequest($issue: ID!) {
|
||||
updatePullRequest(input: {
|
||||
|
||||
Reference in New Issue
Block a user